summaryrefslogtreecommitdiff
path: root/source3/lib/messages_ctdbd.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-07-24 11:47:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:28:58 -0500
commit33c57437a497f14c6f554c254cbb00b08f73e382 (patch)
tree3b10abe13641aa393e999bc237ac74747b33f2e6 /source3/lib/messages_ctdbd.c
parent7c257b2214805e1ef543c3981b74e19649b234df (diff)
downloadsamba-33c57437a497f14c6f554c254cbb00b08f73e382.tar.gz
samba-33c57437a497f14c6f554c254cbb00b08f73e382.tar.bz2
samba-33c57437a497f14c6f554c254cbb00b08f73e382.zip
r24032: It helps testing tremendously if the cluster messaging actually sends
and receives messages to other nodes... :-) (This used to be commit 3e9e9a3f28763500a1c5e551a808a14661d7d9fa)
Diffstat (limited to 'source3/lib/messages_ctdbd.c')
-rw-r--r--source3/lib/messages_ctdbd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/lib/messages_ctdbd.c b/source3/lib/messages_ctdbd.c
index d048bc9aba..dbdc8db3c1 100644
--- a/source3/lib/messages_ctdbd.c
+++ b/source3/lib/messages_ctdbd.c
@@ -94,6 +94,15 @@ NTSTATUS messaging_ctdbd_init(struct messaging_context *msg_ctx,
return status;
}
+ status = ctdbd_register_msg_ctx(ctx->conn, msg_ctx);
+
+ if (!NT_STATUS_IS_OK(status)) {
+ DEBUG(10, ("ctdbd_register_msg_ctx failed: %s\n",
+ nt_errstr(status)));
+ TALLOC_FREE(result);
+ return status;
+ }
+
global_ctdbd_connection = ctx->conn;
talloc_set_destructor(ctx, messaging_ctdbd_destructor);