From fb3daf365355d26d9c0c52353232a9d944a4212f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 27 Nov 2000 06:35:12 +0000 Subject: fixed a potential locking deadlock in tdb (This used to be commit 03453e2ae557d7fa119338b71744822093d2f38a) --- source3/tdb/tdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c index 45cbaf73ed..97cbba67cc 100644 --- a/source3/tdb/tdb.c +++ b/source3/tdb/tdb.c @@ -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); -- cgit