Revert "dont check if commit failed, we do allow the commit to fail sometimes"
authorMichael Adam <obnox@samba.org>
Thu, 10 Sep 2009 14:21:01 +0000 (16:21 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 21 Sep 2009 09:16:18 +0000 (11:16 +0200)
This reverts commit affa6f47432507e84b7e76b88a2c27fff8e6e2e4.

Transaction commit should not be allowed to fail.
This is a fatal error.

Michael

tests/src/ctdb_transaction.c

index fdd2e896223ad1c6c78a662f8bedad77bc80a382..c747e1adda479a7fa4d909d4597b13021941b75f 100644 (file)
@@ -197,7 +197,7 @@ static void test_store_records(struct ctdb_context *ctdb, struct event_context *
                        ret = ctdb_transaction_commit(h);
                        if (ret != 0) {
                                DEBUG(DEBUG_ERR,("Failed to commit transaction\n"));
-                               //exit(1);
+                               exit(1);
                        }
                        if (verbose) printf("transaction committed\n");
                } else {