X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb%2Ftest%2Frun-no-lock-during-traverse.c;h=bbca2e93a391b88e4a517947adb6f23c4dc85b33;hp=a4f7668ee49ca24ae3073aea92402e66190f11d7;hb=233e3055c46ba2ed8fea326ac40ea0545eb0444f;hpb=b3804e47471640f1f8c15f5013a78bdbeb12f69d diff --git a/ccan/tdb/test/run-no-lock-during-traverse.c b/ccan/tdb/test/run-no-lock-during-traverse.c index a4f7668e..bbca2e93 100644 --- a/ccan/tdb/test/run-no-lock-during-traverse.c +++ b/ccan/tdb/test/run-no-lock-during-traverse.c @@ -17,6 +17,7 @@ #include #include #include +#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));