]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/private.h
tdb2: fix O_RDONLY opens.
[ccan] / ccan / tdb2 / private.h
index 369511cd5d2f86eb11748df04d932bf8fb85d461..7b79cc3eefced99d4ba84a4820e0d31735227dd3 100644 (file)
@@ -570,8 +570,8 @@ enum TDB_ERROR tdb_allrecord_upgrade(struct tdb_context *tdb);
 
 /* Serialize db open. */
 enum TDB_ERROR tdb_lock_open(struct tdb_context *tdb,
-                            enum tdb_lock_flags flags);
-void tdb_unlock_open(struct tdb_context *tdb);
+                            int ltype, enum tdb_lock_flags flags);
+void tdb_unlock_open(struct tdb_context *tdb, int ltype);
 bool tdb_has_open_lock(struct tdb_context *tdb);
 
 /* Serialize db expand. */