s3: Fix the code to immediately disconnect from a non-working ctdbd
authorVolker Lendecke <vl@samba.org>
Thu, 3 Dec 2009 00:55:52 +0000 (01:55 +0100)
committerMichael Adam <obnox@samba.org>
Fri, 21 Jan 2011 09:10:02 +0000 (10:10 +0100)
source3/lib/ctdbd_conn.c

index dee477f3c525f2924d88e6a2e37fc2e5f2b0018b..d2016932c91541ab8ee1c3884b010a51d5668174 100644 (file)
@@ -515,6 +515,7 @@ static NTSTATUS ctdbd_init_connection(TALLOC_CTX *mem_ctx,
 
        if (!ctdbd_working(conn, conn->our_vnn)) {
                DEBUG(2, ("Node is not working, can not connect\n"));
+               status = NT_STATUS_INTERNAL_DB_ERROR;
                goto fail;
        }