Add yet another error code when forking an smbd and ctdb is not there. We can see...
authorPeter Somogyi <psomogyi@hu.ibm.com>
Wed, 1 Jun 2016 16:30:08 +0000 (18:30 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 6 Jun 2016 14:10:19 +0000 (16:10 +0200)
Signed-off-by: Peter Somogyi <psomogyi@hu.ibm.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Jun  6 16:10:19 CEST 2016 on sn-devel-144

source3/smbd/server.c

index 82e686e94c8bba8ec56ffa05ad1f3559ccc6b7c5..24acc04332575c36ff21a362b620230516d1fed9 100644 (file)
@@ -747,11 +747,14 @@ static void smbd_accept_connection(struct tevent_context *ev,
                                goto exit;
                        }
                        if (lp_clustering() &&
-                           NT_STATUS_EQUAL(status,
-                           NT_STATUS_INTERNAL_DB_ERROR)) {
-                               DEBUG(1,("child process cannot initialize "
-                                        "because connection to CTDB "
-                                        "has failed\n"));
+                           (NT_STATUS_EQUAL(
+                                   status, NT_STATUS_INTERNAL_DB_ERROR) ||
+                            NT_STATUS_EQUAL(
+                                   status, NT_STATUS_CONNECTION_REFUSED))) {
+                               DEBUG(1, ("child process cannot initialize "
+                                         "because connection to CTDB "
+                                         "has failed: %s\n",
+                                         nt_errstr(status)));
                                goto exit;
                        }