X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-tdb1-die-during-transaction.c;h=f42513953a5adbb79995c9a132340e4676604d4c;hp=4f54f6cbc66209923d287739e3cbfe0891163dd7;hb=98c754ffe65bc335f66161d6cc8705d4ea2710ec;hpb=c8c3b3568677e8b0105f84e4ab068c580faf4591 diff --git a/ccan/tdb2/test/run-tdb1-die-during-transaction.c b/ccan/tdb2/test/run-tdb1-die-during-transaction.c index 4f54f6cb..f4251395 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. */ @@ -173,7 +173,7 @@ reset: if (tdb1_transaction_start(tdb) != 0) 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)