mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
fixed a potential locking deadlock in tdb
(This used to be commit 03453e2ae5
)
This commit is contained in:
parent
efb7bb3bcf
commit
fb3daf3653
@ -761,7 +761,7 @@ int tdb_traverse(TDB_CONTEXT *tdb, int (*fn)(TDB_CONTEXT *tdb, TDB_DATA key, TDB
|
||||
|
||||
/* loop over all hash chains */
|
||||
for (h = 0; h < tdb->header.hash_size; h++) {
|
||||
tdb_lock(tdb, BUCKET(h), F_RDLCK);
|
||||
tdb_lock(tdb, BUCKET(h), F_WRLCK);
|
||||
|
||||
/* read in the hash top */
|
||||
offset = tdb_hash_top(tdb, h);
|
||||
|
Loading…
Reference in New Issue
Block a user