From fcb345f5d6be9659a0f8a5afe62a937010a33d5c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 16 Feb 2013 22:08:52 +0100 Subject: 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 --- lib/tdb/common/lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tdb') 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; } -- cgit