diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:56:13 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:56:13 +0930 |
commit | 9140fca812063be69842a6c64030e32c65c9dff1 (patch) | |
tree | 73b9e12160be66ce7853e0e9b44ad44c17269b65 /lib/tdb2/private.h | |
parent | 30294c7b91456dd49b89a9b26eb0b1066087815c (diff) | |
download | samba-9140fca812063be69842a6c64030e32c65c9dff1.tar.gz samba-9140fca812063be69842a6c64030e32c65c9dff1.tar.bz2 samba-9140fca812063be69842a6c64030e32c65c9dff1.zip |
tdb2: unify tdb1_chainlock et al. into tdb_chainlock
Switch on the TDB_VERSION1 flag.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit ceb2f3eacbad917ee990afbc3dd800bfb0607887)
Diffstat (limited to 'lib/tdb2/private.h')
-rw-r--r-- | lib/tdb2/private.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/tdb2/private.h b/lib/tdb2/private.h index e981372351..4132ac2949 100644 --- a/lib/tdb2/private.h +++ b/lib/tdb2/private.h @@ -652,8 +652,15 @@ enum TDB_ERROR tdb1_open(struct tdb_context *tdb); enum TDB_ERROR tdb1_probe_length(struct tdb_context *tdb); /* tdb1_lock.c: */ +int tdb1_allrecord_lock(struct tdb_context *tdb, int ltype, + enum tdb_lock_flags flags, bool upgradable); int tdb1_allrecord_unlock(struct tdb_context *tdb, int ltype); +int tdb1_chainlock(struct tdb_context *tdb, TDB_DATA key); +int tdb1_chainunlock(struct tdb_context *tdb, TDB_DATA key); +int tdb1_chainlock_read(struct tdb_context *tdb, TDB_DATA key); +int tdb1_chainunlock_read(struct tdb_context *tdb, TDB_DATA key); + /* tdb1_transaction.c: */ int tdb1_transaction_recover(struct tdb_context *tdb); int tdb1_transaction_cancel(struct tdb_context *tdb); |