summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-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 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