]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/test/run-tdb1-traverse-in-transaction.c
tdb2: make tdb1_open use attributes for logging, hash function.
[ccan] / ccan / tdb2 / test / run-tdb1-traverse-in-transaction.c
index 243f2d653f504bfed14bb5e7da5882265e58790d..0395bff7ce66deeb30ebf465bf42869dee14f361 100644 (file)
@@ -8,7 +8,7 @@
 #include <stdbool.h>
 #include <err.h>
 #include "tdb1-external-agent.h"
-#include "tdb1-logging.h"
+#include "logging.h"
 
 static struct agent *agent;
 
@@ -42,9 +42,9 @@ int main(int argc, char *argv[])
        if (!agent)
                err(1, "preparing agent");
 
-       tdb = tdb1_open_ex("run-traverse-in-transaction.tdb",
-                         1024, TDB_DEFAULT, O_CREAT|O_TRUNC|O_RDWR,
-                         0600, &taplogctx, NULL);
+       tdb = tdb1_open("run-traverse-in-transaction.tdb",
+                       1024, TDB_DEFAULT, O_CREAT|O_TRUNC|O_RDWR,
+                       0600, &tap_log_attr);
        ok1(tdb);
 
        key.dsize = strlen("hi");