Revert "dont exit on a commit failure"
authorMichael Adam <obnox@samba.org>
Thu, 29 Oct 2009 21:40:00 +0000 (22:40 +0100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 30 Oct 2009 11:01:53 +0000 (22:01 +1100)
This reverts commit 4e9a3a5dc232bac12ab387ea0cf4f1b279bed5c1.

Transaction commit should not be allowed to fail.
This is a real 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 {