]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/test/tdb1-external-agent.c
tdb2: make tdb1_open use attributes for logging, hash function.
[ccan] / ccan / tdb2 / test / tdb1-external-agent.c
index 08c024b5cc93936fff7f215b51fcb9a716ff2c52..dcd825dc82cf8568e727b9905f966d83fd6490b3 100644 (file)
@@ -1,6 +1,6 @@
 #include "tdb1-external-agent.h"
 #include "tdb1-lock-tracking.h"
-#include "tdb1-logging.h"
+#include "logging.h"
 #include <sys/types.h>
 #include <sys/wait.h>
 #include <unistd.h>
@@ -39,8 +39,8 @@ static enum agent_return do_operation(enum operation op, const char *name)
                        diag("Already have tdb %s open", tdb->name);
                        return OTHER_FAILURE;
                }
-               tdb = tdb1_open_ex(name, 0, TDB_DEFAULT, O_RDWR, 0,
-                                 &taplogctx, NULL);
+               tdb = tdb1_open(name, 0, TDB_DEFAULT, O_RDWR, 0,
+                               &tap_log_attr);
                if (!tdb) {
                        if (!locking_would_block1)
                                diag("Opening tdb gave %s", strerror(errno));