summaryrefslogtreecommitdiff
path: root/source3/tdb
diff options
context:
space:
mode:
Diffstat (limited to 'source3/tdb')
-rw-r--r--source3/tdb/tdb.c2
1 files changed, 1 insertions, 1 deletions
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);