tdb2: unify tdb1_store into tdb_store
[ccan] / ccan / tdb2 / test / tdb1-external-agent.c
index eb52e55f62799381d1069acdd243a1aed5bcad9f..4a0d3835483dc4e6c8e504355e475d9d46cc716a 100644 (file)
@@ -66,7 +66,10 @@ static enum agent_return do_operation(enum operation op, const char *name)
                free(data.dptr);
                break;
        case STORE:
-               ret = tdb1_store(tdb, k, k, 0) == 0 ? SUCCESS : OTHER_FAILURE;
+               if (tdb_store(tdb, k, k, 0) == TDB_SUCCESS)
+                       ret = SUCCESS;
+               else
+                       ret = OTHER_FAILURE;
                break;
        case TRANSACTION_COMMIT:
                ret = tdb1_transaction_commit(tdb)==0 ? SUCCESS : OTHER_FAILURE;