From: Peter Somogyi Date: Wed, 1 Jun 2016 16:30:08 +0000 (+0200) Subject: Add yet another error code when forking an smbd and ctdb is not there. We can see... X-Git-Tag: tdb-1.3.10~980 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a936234b554309c8d480c5e276deda9e7f9029b4;p=thirdparty%2Fsamba.git Add yet another error code when forking an smbd and ctdb is not there. We can see NT_STATUS_CONNECTION_REFUSED in the logs upon such a rare case. Signed-off-by: Peter Somogyi Reviewed-by: Volker Lendecke Reviewed-by: Martin Schwenke Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Mon Jun 6 16:10:19 CEST 2016 on sn-devel-144 --- diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 82e686e94c8..24acc043325 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -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; }