summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/tdb/traverse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/tdb/traverse.c b/source3/tdb/traverse.c
index d070e0a766..712504a764 100644
--- a/source3/tdb/traverse.c
+++ b/source3/tdb/traverse.c
@@ -261,6 +261,7 @@ TDB_DATA tdb_firstkey(struct tdb_context *tdb)
if (tdb_unlock_record(tdb, tdb->travlocks.off) != 0)
return tdb_null;
tdb->travlocks.off = tdb->travlocks.hash = 0;
+ tdb->travlocks.lock_rw = F_RDLCK;
if (tdb_next_lock(tdb, &tdb->travlocks, &rec) <= 0)
return tdb_null;