From: Volker Lendecke Date: Sat, 16 Feb 2013 21:08:52 +0000 (+0100) Subject: tdb: Make tdb_release_transaction_locks use tdb_allrecord_unlock X-Git-Tag: tevent-0.9.18~189 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fcb345f5d6be9659a0f8a5afe62a937010a33d5c;p=thirdparty%2Fsamba.git 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 Reviewed-by: Stefan Metzmacher --- diff --git a/lib/tdb/common/lock.c b/lib/tdb/common/lock.c index 25ed8779009..b59dfbc92ca 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; }