]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/test/run-04-basichash.c
tdb2: add write flag to tdb_direct
[ccan] / ccan / tdb2 / test / run-04-basichash.c
index db895b6c6fca3c850bb927e13f9d0cc7d2b45935..491c853fce27fb58b5778edc05f5d22aaa9570cb 100644 (file)
@@ -3,6 +3,7 @@
 #include <ccan/tdb2/lock.c>
 #include <ccan/tdb2/io.c>
 #include <ccan/tdb2/hash.c>
+#include <ccan/tdb2/transaction.c>
 #include <ccan/tdb2/check.c>
 #include <ccan/tap/tap.h>
 #include "logging.h"
@@ -169,7 +170,7 @@ int main(int argc, char *argv[])
 
                /* Simple delete should work. */
                ok1(delete_from_hash(tdb, &h) == 0);
-               ok1(add_free_record(tdb, rec_zone_bits(&rec), new_off,
+               ok1(add_free_record(tdb, new_off,
                                    sizeof(struct tdb_used_record)
                                    + rec_key_length(&rec)
                                    + rec_data_length(&rec)