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/tdb1.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/tdb1.h')
-rw-r--r-- | lib/tdb2/tdb1.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/tdb2/tdb1.h b/lib/tdb2/tdb1.h index 4b0e454d1b..75cf39d7e1 100644 --- a/lib/tdb2/tdb1.h +++ b/lib/tdb2/tdb1.h @@ -47,14 +47,6 @@ TDB_DATA tdb1_firstkey(struct tdb_context *tdb); TDB_DATA tdb1_nextkey(struct tdb_context *tdb, TDB_DATA key); -int tdb1_lockall(struct tdb_context *tdb); - -int tdb1_unlockall(struct tdb_context *tdb); - -int tdb1_lockall_read(struct tdb_context *tdb); - -int tdb1_unlockall_read(struct tdb_context *tdb); - int tdb1_transaction_start(struct tdb_context *tdb); int tdb1_transaction_prepare_commit(struct tdb_context *tdb); @@ -73,13 +65,6 @@ int tdb1_check(struct tdb_context *tdb, /* @} ******************************************************************/ -/* Low level locking functions: use with care */ -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); - - /* wipe and repack */ int tdb1_wipe_all(struct tdb_context *tdb); int tdb1_repack(struct tdb_context *tdb); |