]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/test/run-tdb1-die-during-transaction.c
tdb2: unify tdb1_store into tdb_store
[ccan] / ccan / tdb2 / test / run-tdb1-die-during-transaction.c
index 4f54f6cbc66209923d287739e3cbfe0891163dd7..f42513953a5adbb79995c9a132340e4676604d4c 100644 (file)
@@ -155,7 +155,7 @@ reset:
        /* Put key for agent to fetch. */
        key.dsize = strlen(KEY_STRING);
        key.dptr = (void *)KEY_STRING;
        /* 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. */
                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_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)
                return false;
 
        if (tdb1_transaction_commit(tdb) != 0)