s3: Fix a 100% CPU loop when ctdbd dies during a traverse
authorVolker Lendecke <vl@samba.org>
Mon, 2 Nov 2009 15:59:15 +0000 (16:59 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 3 Nov 2009 07:09:16 +0000 (08:09 +0100)
source/lib/ctdbd_conn.c

index 33a69f6f96afa8830e3716abddd0da693f654d9f..0020fcd59cac10b5e11c2925cdc7faf50aa87aa2 100644 (file)
@@ -1162,6 +1162,7 @@ NTSTATUS ctdbd_traverse(uint32 db_id,
 
                if (NT_STATUS_EQUAL(status, NT_STATUS_END_OF_FILE)) {
                        status = NT_STATUS_OK;
+                       break;
                }
 
                if (!NT_STATUS_IS_OK(status)) {