From d7942bd2c5eaa2aa62511b018d04ea8ce9c51450 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 7 Jun 2007 00:14:06 +0000 Subject: r23371: Fix the misleading comment I added - it really *should* say "locks chain and returned record", not "and returns record" Jeremy. (This used to be commit fa880e6cc16024f14d10cdc8120ce67bfd1d2eb6) --- source4/lib/tdb/common/traverse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/lib/tdb') diff --git a/source4/lib/tdb/common/traverse.c b/source4/lib/tdb/common/traverse.c index 1580a0dd07..b2bddec18d 100644 --- a/source4/lib/tdb/common/traverse.c +++ b/source4/lib/tdb/common/traverse.c @@ -259,7 +259,7 @@ TDB_DATA tdb_firstkey(struct tdb_context *tdb) tdb->travlocks.off = tdb->travlocks.hash = 0; tdb->travlocks.lock_rw = F_RDLCK; - /* Grab first record: locks chain and returns record. */ + /* Grab first record: locks chain and returned record. */ if (tdb_next_lock(tdb, &tdb->travlocks, &rec) <= 0) return tdb_null; /* now read the key */ @@ -316,7 +316,7 @@ TDB_DATA tdb_nextkey(struct tdb_context *tdb, TDB_DATA oldkey) } oldhash = tdb->travlocks.hash; - /* Grab next record: locks chain and returns record, + /* Grab next record: locks chain and returned record, unlocks old record */ if (tdb_next_lock(tdb, &tdb->travlocks, &rec) > 0) { key.dsize = rec.key_len; -- cgit