diff options
author | Volker Lendecke <vl@samba.org> | 2017-06-01 18:58:16 +0200 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2017-07-25 17:43:18 +0200 |
commit | fdad620990aecb7d76e7360a7ce282c2686c0963 (patch) | |
tree | 3cad1065f2b7a3bbf3d1f98544bf137b6e90c5ee /source3/lib/messages.c | |
parent | bd1e26f00e78b6bbafd71fd250953e936ec48e32 (diff) | |
download | samba-fdad620990aecb7d76e7360a7ce282c2686c0963.tar.gz |
messages_ctdb: Handle async msgs for nested event contexts
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/lib/messages.c')
-rw-r--r-- | source3/lib/messages.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c index 759cc8bf3b6..4e838b03843 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -513,7 +513,8 @@ static NTSTATUS messaging_init_internal(TALLOC_CTX *mem_ctx, talloc_set_destructor(ctx, messaging_context_destructor); if (lp_clustering()) { - ret = messaging_ctdbd_init(ctx, ctx, &ctx->remote); + ret = messaging_ctdbd_init( + ctx, ctx, messaging_recv_cb, ctx, &ctx->remote); if (ret != 0) { DEBUG(2, ("messaging_ctdbd_init failed: %s\n", @@ -627,8 +628,10 @@ NTSTATUS messaging_reinit(struct messaging_context *msg_ctx) if (lp_clustering()) { TALLOC_FREE(msg_ctx->cluster_fde); - ret = messaging_ctdbd_reinit(msg_ctx, msg_ctx, - msg_ctx->remote); + ret = messaging_ctdbd_reinit( + msg_ctx, msg_ctx, messaging_recv_cb, msg_ctx, + msg_ctx->remote); + if (ret != 0) { DEBUG(1, ("messaging_ctdbd_init failed: %s\n", strerror(ret))); |