]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/private.h
tdb2: allow multiple opens of the same file.
[ccan] / ccan / tdb2 / private.h
index b709ee95b97375845a06814998b37a5b711bbfb1..4e7fc8ffeccaba5e2ab13348cf02a23bcbbb15bf 100644 (file)
@@ -320,6 +320,9 @@ struct tdb_file {
        /* Single list of all TDBs, to detect multiple opens. */
        struct tdb_file *next;
 
+       /* How many are sharing us? */
+       unsigned int refcnt;
+
        /* Mmap (if any), or malloc (for TDB_INTERNAL). */
        void *map_ptr;