tdb: Make tdb_release_transaction_locks use tdb_allrecord_unlock
authorVolker Lendecke <vl@samba.org>
Sat, 16 Feb 2013 21:08:52 +0000 (22:08 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 19 Feb 2013 14:46:45 +0000 (15:46 +0100)
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>
lib/tdb/common/lock.c

index 25ed8779009c9d190906838510e3234770b60688..b59dfbc92ca719189b701169b27c7b9d038ef2bd 100644 (file)
@@ -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;
        }