From a03a74c35388ed23681a2381252a85bef7cafbe7 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 4 Apr 2012 11:27:08 +0200 Subject: s3: Make messaging_ctdbd_connection available in non-clustered mode This might make some #ifdef CLUSTER_SUPPORT unnecessary in the future --- source3/lib/messages_ctdbd.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source3/lib/messages_ctdbd.c b/source3/lib/messages_ctdbd.c index b7db2a76f0..7899477ba0 100644 --- a/source3/lib/messages_ctdbd.c +++ b/source3/lib/messages_ctdbd.c @@ -59,6 +59,10 @@ static int global_ctdb_connection_pid; struct ctdbd_connection *messaging_ctdbd_connection(void) { + if (!lp_clustering()) { + return NULL; + } + if (global_ctdb_connection_pid == 0 && global_ctdbd_connection == NULL) { struct event_context *ev; @@ -174,4 +178,9 @@ NTSTATUS messaging_ctdbd_init(struct messaging_context *msg_ctx, return NT_STATUS_NOT_IMPLEMENTED; } +struct ctdbd_connection *messaging_ctdbd_connection(void) +{ + return NULL; +} + #endif -- cgit