mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
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>
This commit is contained in:
parent
5929e38b6c
commit
fcb345f5d6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user