summaryrefslogtreecommitdiff
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 14:53:13 -0500
commitd7942bd2c5eaa2aa62511b018d04ea8ce9c51450 (patch)
treed4f940b48b3c66bf83fd6b74f2b6ae538f65e3d3
parent90539985db53540f1f7b8d9250105e4bb9cf8093 (diff)
downloadsamba-d7942bd2c5eaa2aa62511b018d04ea8ce9c51450.tar.gz
samba-d7942bd2c5eaa2aa62511b018d04ea8ce9c51450.tar.bz2
samba-d7942bd2c5eaa2aa62511b018d04ea8ce9c51450.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 fa880e6cc16024f14d10cdc8120ce67bfd1d2eb6)
-rw-r--r--source4/lib/tdb/common/traverse.c4
1 files changed, 2 insertions, 2 deletions
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;