summaryrefslogtreecommitdiff
path: root/lib/tdb2/tdb1_private.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-09-14 07:27:13 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-09-14 07:27:13 +0930
commit3b2c10f8955096c5cb28e8ae157e0f08858c001e (patch)
tree686db58689c9e3ca28b7c38c733f3f6a9136e16a /lib/tdb2/tdb1_private.h
parent0b81b07110c463300431a09f24e67144f97ad8b0 (diff)
downloadsamba-3b2c10f8955096c5cb28e8ae157e0f08858c001e.tar.gz
samba-3b2c10f8955096c5cb28e8ae157e0f08858c001e.tar.bz2
samba-3b2c10f8955096c5cb28e8ae157e0f08858c001e.zip
tdb2: get rid of TDB1 mark and nonblock functions.
We do this using hooks in tdb2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 444fade529f68eb2b0aebbc8de442478c5c6f916)
Diffstat (limited to 'lib/tdb2/tdb1_private.h')
-rw-r--r--lib/tdb2/tdb1_private.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/tdb2/tdb1_private.h b/lib/tdb2/tdb1_private.h
index ae2888c0a7..809f135555 100644
--- a/lib/tdb2/tdb1_private.h
+++ b/lib/tdb2/tdb1_private.h
@@ -180,8 +180,6 @@ enum tdb1_lock_flags {
TDB1_LOCK_WAIT = 1,
/* If set, don't log an error on failure. */
TDB1_LOCK_PROBE = 2,
- /* If set, don't actually lock at all. */
- TDB1_LOCK_MARK_ONLY = 4,
};
struct tdb1_context;
@@ -229,8 +227,7 @@ void tdb1_mmap(struct tdb1_context *tdb);
int tdb1_lock(struct tdb1_context *tdb, int list, int ltype);
int tdb1_nest_lock(struct tdb1_context *tdb, uint32_t offset, int ltype,
enum tdb1_lock_flags flags);
-int tdb1_nest_unlock(struct tdb1_context *tdb, uint32_t offset, int ltype,
- bool mark_lock);
+int tdb1_nest_unlock(struct tdb1_context *tdb, uint32_t offset, int ltype);
int tdb1_unlock(struct tdb1_context *tdb, int list, int ltype);
int tdb1_brlock(struct tdb1_context *tdb,
int rw_type, tdb1_off_t offset, size_t len,
@@ -248,7 +245,7 @@ int tdb1_recovery_area(struct tdb1_context *tdb,
struct tdb1_record *rec);
int tdb1_allrecord_lock(struct tdb1_context *tdb, int ltype,
enum tdb1_lock_flags flags, bool upgradable);
-int tdb1_allrecord_unlock(struct tdb1_context *tdb, int ltype, bool mark_lock);
+int tdb1_allrecord_unlock(struct tdb1_context *tdb, int ltype);
int tdb1_allrecord_upgrade(struct tdb1_context *tdb);
int tdb1_write_lock_record(struct tdb1_context *tdb, tdb1_off_t off);
int tdb1_write_unlock_record(struct tdb1_context *tdb, tdb1_off_t off);