summaryrefslogtreecommitdiff
path: root/lib/tdb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-02-16 22:08:52 +0100
committerStefan Metzmacher <metze@samba.org>2013-02-19 15:46:45 +0100
commitfcb345f5d6be9659a0f8a5afe62a937010a33d5c (patch)
treea73c0489ae6e35c38299695739ab9c0707d38661 /lib/tdb
parent5929e38b6cdbd4f9721293a19f079ceae1af76b0 (diff)
downloadsamba-fcb345f5d6be9659a0f8a5afe62a937010a33d5c.tar.gz
samba-fcb345f5d6be9659a0f8a5afe62a937010a33d5c.tar.bz2
samba-fcb345f5d6be9659a0f8a5afe62a937010a33d5c.zip
tdb: Make tdb_release_transaction_locks use tdb_allrecord_unlock
The transaction code uses tdb_alrecord_lock/upgrade, so it should also use the tdb_allrecord_unlock function just for symmetry reasons Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/tdb')
-rw-r--r--lib/tdb/common/lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb/common/lock.c b/lib/tdb/common/lock.c
index 25ed877900..b59dfbc92c 100644
--- a/lib/tdb/common/lock.c
+++ b/lib/tdb/common/lock.c
@@ -879,7 +879,7 @@ void tdb_release_transaction_locks(struct tdb_context *tdb)
unsigned int i, active = 0;
if (tdb->allrecord_lock.count != 0) {
- tdb_brunlock(tdb, tdb->allrecord_lock.ltype, FREELIST_TOP, 0);
+ tdb_allrecord_unlock(tdb, tdb->allrecord_lock.ltype, false);
tdb->allrecord_lock.count = 0;
}