summaryrefslogtreecommitdiff
path: root/source3/lib/tdb/common
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-06-07 00:14:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:11 -0500
commit5b1126860920bda56eb5c10b9c9b3fc9cd821b94 (patch)
tree06a0f7f3e466985f69ccc7b074ad67ab15c07631 /source3/lib/tdb/common
parent68f2b1d9f6851a4582b0bb9f8add8c9d458b157f (diff)
downloadsamba-5b1126860920bda56eb5c10b9c9b3fc9cd821b94.tar.gz
samba-5b1126860920bda56eb5c10b9c9b3fc9cd821b94.tar.bz2
samba-5b1126860920bda56eb5c10b9c9b3fc9cd821b94.zip
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 bf951e3d7f0310cc624abab11a7fb04c50770425)
Diffstat (limited to 'source3/lib/tdb/common')
-rw-r--r--source3/lib/tdb/common/traverse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/tdb/common/traverse.c b/source3/lib/tdb/common/traverse.c
index 69f3bd68d1..07531964a2 100644
--- a/source3/lib/tdb/common/traverse.c
+++ b/source3/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;