]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/test/run-tdb1-die-during-transaction.c
tdb2: make tdb1_open use attributes for logging, hash function.
[ccan] / ccan / tdb2 / test / run-tdb1-die-during-transaction.c
index 1d03a30a1a02ce65b73f5258a1a227f4bade01b8..9ff75d10201f36c3ea90b6e121793286d46b565b 100644 (file)
@@ -18,7 +18,7 @@ static int ftruncate_check(int fd, off_t length);
 #include <err.h>
 #include <setjmp.h>
 #include "tdb1-external-agent.h"
-#include "tdb1-logging.h"
+#include "logging.h"
 
 #undef write
 #undef pwrite
@@ -89,8 +89,8 @@ static bool test_death(enum operation op, struct agent *agent)
        current = target = 0;
 reset:
        unlink(TEST_DBNAME);
-       tdb = tdb1_open_ex(TEST_DBNAME, 1024, TDB_NOMMAP,
-                         O_CREAT|O_TRUNC|O_RDWR, 0600, &taplogctx, NULL);
+       tdb = tdb1_open(TEST_DBNAME, 1024, TDB_NOMMAP,
+                       O_CREAT|O_TRUNC|O_RDWR, 0600, &tap_log_attr);
 
        if (setjmp(jmpbuf) != 0) {
                /* We're partway through.  Simulate our death. */