tdb2: Remove unused tdb1 functions.
[ccan] / ccan / tdb2 / test / run-tdb1-traverse-in-transaction.c
index eb925be20c85ed26a71b65cb348877176a8ff5e1..9cb70686fe4e85242c99d7294901ff827ee1b471 100644 (file)
@@ -54,24 +54,24 @@ int main(int argc, char *argv[])
 
        ok1(tdb1_store(tdb, key, data, TDB1_INSERT) == 0);
 
-       ok1(external_agent_operation1(agent, OPEN, tdb1_name(tdb)) == SUCCESS);
+       ok1(external_agent_operation1(agent, OPEN, tdb->name) == SUCCESS);
 
        ok1(tdb1_transaction_start(tdb) == 0);
-       ok1(external_agent_operation1(agent, TRANSACTION_START, tdb1_name(tdb))
+       ok1(external_agent_operation1(agent, TRANSACTION_START, tdb->name)
            == WOULD_HAVE_BLOCKED);
        tdb1_traverse(tdb, traverse, NULL);
 
        /* That should *not* release the transaction lock! */
-       ok1(external_agent_operation1(agent, TRANSACTION_START, tdb1_name(tdb))
+       ok1(external_agent_operation1(agent, TRANSACTION_START, tdb->name)
            == WOULD_HAVE_BLOCKED);
        tdb1_traverse_read(tdb, traverse, NULL);
 
        /* That should *not* release the transaction lock! */
-       ok1(external_agent_operation1(agent, TRANSACTION_START, tdb1_name(tdb))
+       ok1(external_agent_operation1(agent, TRANSACTION_START, tdb->name)
            == WOULD_HAVE_BLOCKED);
        ok1(tdb1_transaction_commit(tdb) == 0);
        /* Now we should be fine. */
-       ok1(external_agent_operation1(agent, TRANSACTION_START, tdb1_name(tdb))
+       ok1(external_agent_operation1(agent, TRANSACTION_START, tdb->name)
            == SUCCESS);
 
        tdb1_close(tdb);