tdb: Make tdb_release_transaction_locks use tdb_allrecord_unlock
[samba.git] / 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;
        }