diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-05-30 08:15:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:53:06 -0500 |
commit | dd64de3d5beeeca870a94f4fb8bbc4d094bbe989 (patch) | |
tree | ef67f20a1d4fe9c7f755e0993dfdfb705488cdbc /source4/lib/tdb/common/tdb_private.h | |
parent | 9c6c4848c941971f186a2cbcefcd07e5a1a55544 (diff) | |
download | samba-dd64de3d5beeeca870a94f4fb8bbc4d094bbe989.tar.gz samba-dd64de3d5beeeca870a94f4fb8bbc4d094bbe989.tar.bz2 samba-dd64de3d5beeeca870a94f4fb8bbc4d094bbe989.zip |
r23238: merged transaction lock changes from ctdb
this ensures that having the global lock also implies the transaction
lock
(This used to be commit 9dbb2633d7781fcc5d15b175ef36bfda5eb199bb)
Diffstat (limited to 'source4/lib/tdb/common/tdb_private.h')
-rw-r--r-- | source4/lib/tdb/common/tdb_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/tdb/common/tdb_private.h b/source4/lib/tdb/common/tdb_private.h index 02a23d0387..3c0499ba95 100644 --- a/source4/lib/tdb/common/tdb_private.h +++ b/source4/lib/tdb/common/tdb_private.h @@ -170,6 +170,7 @@ struct tdb_context { struct tdb_transaction *transaction; int page_size; int max_dead_records; + bool have_transaction_lock; }; @@ -181,6 +182,8 @@ void tdb_mmap(struct tdb_context *tdb); int tdb_lock(struct tdb_context *tdb, int list, int ltype); int tdb_unlock(struct tdb_context *tdb, int list, int ltype); int tdb_brlock(struct tdb_context *tdb, tdb_off_t offset, int rw_type, int lck_type, int probe, size_t len); +int tdb_transaction_lock(struct tdb_context *tdb, int ltype); +int tdb_transaction_unlock(struct tdb_context *tdb); int tdb_brlock_upgrade(struct tdb_context *tdb, tdb_off_t offset, size_t len); int tdb_write_lock_record(struct tdb_context *tdb, tdb_off_t off); int tdb_write_unlock_record(struct tdb_context *tdb, tdb_off_t off); |