X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-tdb1-die-during-transaction.c;h=f45fcedc7abf746136200291c13bce1ddb232894;hb=6bc8ea012391198bc3898ae2937558b60dd55906;hp=4f54f6cbc66209923d287739e3cbfe0891163dd7;hpb=c8c3b3568677e8b0105f84e4ab068c580faf4591;p=ccan diff --git a/ccan/tdb2/test/run-tdb1-die-during-transaction.c b/ccan/tdb2/test/run-tdb1-die-during-transaction.c index 4f54f6cb..f45fcedc 100644 --- a/ccan/tdb2/test/run-tdb1-die-during-transaction.c +++ b/ccan/tdb2/test/run-tdb1-die-during-transaction.c @@ -155,7 +155,7 @@ reset: /* Put key for agent to fetch. */ key.dsize = strlen(KEY_STRING); key.dptr = (void *)KEY_STRING; - if (tdb1_store(tdb, key, key, TDB_INSERT) != 0) + if (tdb_store(tdb, key, key, TDB_INSERT) != TDB_SUCCESS) return false; /* This is the key we insert in transaction. */ @@ -170,13 +170,13 @@ reset: errx(1, "Agent failed find key: %s", agent_return_name1(ret)); in_transaction = true; - if (tdb1_transaction_start(tdb) != 0) + if (tdb_transaction_start(tdb) != TDB_SUCCESS) return false; - if (tdb1_store(tdb, key, key, TDB_INSERT) != 0) + if (tdb_store(tdb, key, key, TDB_INSERT) != TDB_SUCCESS) return false; - if (tdb1_transaction_commit(tdb) != 0) + if (tdb_transaction_commit(tdb) != TDB_SUCCESS) return false; in_transaction = false;