tdb2: unify tdb1_store into tdb_store
[ccan] / ccan / tdb2 / test / run-tdb1-nested-transactions.c
index 645b4bc1470a23a541b459e9c1ff6f375b394ab1..408987b58e827527931ca586849c9dc6ebe1432a 100644 (file)
@@ -54,18 +54,18 @@ int main(int argc, char *argv[])
        ok1(tdb1_transaction_start(tdb) == 0);
        ok1(tdb_delete(tdb, key) == TDB_SUCCESS);
        ok1(tdb1_transaction_commit(tdb) == 0);
-       ok1(!tdb1_exists(tdb, key));
+       ok1(!tdb_exists(tdb, key));
        ok1(tdb1_transaction_cancel(tdb) == 0);
        /* Surprise! Kills inner "committed" transaction. */
-       ok1(tdb1_exists(tdb, key));
+       ok1(tdb_exists(tdb, key));
 
        ok1(tdb1_transaction_start(tdb) == 0);
        ok1(tdb1_transaction_start(tdb) == 0);
        ok1(tdb_delete(tdb, key) == TDB_SUCCESS);
        ok1(tdb1_transaction_commit(tdb) == 0);
-       ok1(!tdb1_exists(tdb, key));
+       ok1(!tdb_exists(tdb, key));
        ok1(tdb1_transaction_commit(tdb) == 0);
-       ok1(!tdb1_exists(tdb, key));
+       ok1(!tdb_exists(tdb, key));
        tdb_close(tdb);
 
        return exit_status();