]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb/test/run-no-lock-during-traverse.c
tdb: fix test helper to include own header, fix function definition.
[ccan] / ccan / tdb / test / run-no-lock-during-traverse.c
index a4f7668ee49ca24ae3073aea92402e66190f11d7..bbca2e93a391b88e4a517947adb6f23c4dc85b33 100644 (file)
@@ -17,6 +17,7 @@
 #include <ccan/tap/tap.h>
 #include <stdlib.h>
 #include <err.h>
+#include "logging.h"
 
 #undef fcntl
 
@@ -78,8 +79,9 @@ int main(int argc, char *argv[])
        int errors = 0;
 
        plan_tests(41);
-       tdb = tdb_open("run-no-lock-during-traverse.tdb",
-                      1024, TDB_CLEAR_IF_FIRST, O_CREAT|O_TRUNC|O_RDWR, 0600);
+       tdb = tdb_open_ex("run-no-lock-during-traverse.tdb",
+                         1024, TDB_CLEAR_IF_FIRST, O_CREAT|O_TRUNC|O_RDWR,
+                         0600, &taplogctx, NULL);
 
        ok1(tdb);
        ok1(prepare_entries(tdb));