tdb: handle processes dying during transaction commit.
[ccan] / ccan / tdb / test / external-transaction.c
index 0a0b4b87685f03803c4b66e01bd172e818c5086d..23d8471386413f39a2d7a7d311ad13c3e22b0021 100644 (file)
@@ -76,11 +76,7 @@ static int do_operation(enum operation op, const char *name)
        } else if (op == CHECK_KEEP_OPENED) {
                return tdb_check(tdb, NULL, 0) == 0;
        } else if (op == NEEDS_RECOVERY_KEEP_OPENED) {
-#if 0
-               return tdb_maybe_needs_recovery(tdb);
-#else
-               return 0;
-#endif
+               return tdb_needs_recovery(tdb);
        }
 
        alarmed = 0;