s3:quota: don't add the string '"' into the argument list
[kai/samba.git] / source3 / lib / messages_ctdbd.c
index 9e092bc699f89dfd736c096eeec6e26e206554ed..7899477ba09119caed647375e00483a7caaf2f7e 100644 (file)
@@ -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;
@@ -69,7 +73,7 @@ struct ctdbd_connection *messaging_ctdbd_connection(void)
                        DEBUG(0,("event_context_init failed\n"));
                }
 
-               msg = messaging_init(NULL, procid_self(), ev);
+               msg = messaging_init(NULL, ev);
                if (!msg) {
                        DEBUG(0,("messaging_init failed\n"));
                        return NULL;
@@ -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