From: Jeremy Allison Date: Thu, 7 Jun 2007 00:14:06 +0000 (+0000) Subject: r23371: Fix the misleading comment I added - it really *should* X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~254 X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=bf951e3d7f0310cc624abab11a7fb04c50770425 r23371: Fix the misleading comment I added - it really *should* say "locks chain and returned record", not "and returns record" Jeremy. --- diff --git a/source/lib/tdb/common/traverse.c b/source/lib/tdb/common/traverse.c index 69f3bd68d18..07531964a2b 100644 --- a/source/lib/tdb/common/traverse.c +++ b/source/lib/tdb/common/traverse.c @@ -263,7 +263,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 */ @@ -320,7 +320,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;