summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/server.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 3e816ee62d..0d855f876f 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -575,7 +575,9 @@ static bool open_sockets_smbd(bool is_daemon, bool interactive, const char *smb_
brl_register_msgs(smbd_messaging_context());
#ifdef CLUSTER_SUPPORT
- ctdbd_register_reconfigure(messaging_ctdbd_connection());
+ if (lp_clustering()) {
+ ctdbd_register_reconfigure(messaging_ctdbd_connection());
+ }
#endif
#ifdef DEVELOPER