]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/test/run-13-delete.c
tdb2: transaction support
[ccan] / ccan / tdb2 / test / run-13-delete.c
index 2f40d55a58e3cfec4d3ce68ae4e2714301fbbabd..ae01e38bf721c6c5008f0f27807f7c5313255643 100644 (file)
@@ -4,6 +4,7 @@
 #include <ccan/tdb2/io.c>
 #include <ccan/tdb2/hash.c>
 #include <ccan/tdb2/check.c>
+#include <ccan/tdb2/transaction.c>
 #include <ccan/tap/tap.h>
 #include "logging.h"
 
@@ -159,7 +160,7 @@ int main(int argc, char *argv[])
                /* Check mixed bitpattern. */
                test_val(tdb, 0x123456789ABCDEF0ULL);
 
-               ok1(!tdb_has_locks(tdb));
+               ok1(tdb->allrecord_lock.count == 0 && tdb->num_lockrecs == 0);
                tdb_close(tdb);
 
                /* Deleting these entries in the db gave problems. */