]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/test/run-tdb1-die-during-transaction.c
tdb2: Make tdb1 use the tdb_file structure.
[ccan] / ccan / tdb2 / test / run-tdb1-die-during-transaction.c
index 592f75731f264252c0f95aa267563282b0801d5e..bcd24df55492336598774c193fb79650cd2d595a 100644 (file)
@@ -94,7 +94,7 @@ reset:
 
        if (setjmp(jmpbuf) != 0) {
                /* We're partway through.  Simulate our death. */
-               close(tdb->fd);
+               close(tdb->file->fd);
                forget_locking1();
                in_transaction = false;