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>
Wed, 10 Mar 2010 12:22:20 +0000 (13:22 +0100)
source3/lib/ctdbd_conn.c

index 9101bd429cbda0c80c01aa0a0d39ee9ee5ba5cc4..05c41c148ccced1e6ab5f733340dd8bd9dee2d4a 100644 (file)
@@ -503,6 +503,7 @@ 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;
        }