diff options
-rw-r--r-- | source3/include/ctdbd_conn.h | 1 | ||||
-rw-r--r-- | source3/lib/ctdbd_conn.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/include/ctdbd_conn.h b/source3/include/ctdbd_conn.h index 96e7aa08a6..71516c73a6 100644 --- a/source3/include/ctdbd_conn.h +++ b/source3/include/ctdbd_conn.h @@ -31,6 +31,7 @@ uint32 ctdbd_vnn(const struct ctdbd_connection *conn); NTSTATUS ctdbd_register_msg_ctx(struct ctdbd_connection *conn, struct messaging_context *msg_ctx); +struct messaging_context *ctdb_conn_msg_ctx(struct ctdbd_connection *conn); NTSTATUS ctdbd_messaging_send(struct ctdbd_connection *conn, uint32 dst_vnn, uint64 dst_srvid, diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c index 900fa345a1..743594d43b 100644 --- a/source3/lib/ctdbd_conn.c +++ b/source3/lib/ctdbd_conn.c @@ -514,6 +514,11 @@ NTSTATUS ctdbd_messaging_connection(TALLOC_CTX *mem_ctx, return status; } +struct messaging_context *ctdb_conn_msg_ctx(struct ctdbd_connection *conn) +{ + return conn->msg_ctx; +} + /* * Packet handler to receive and handle a ctdb message */ |