summaryrefslogtreecommitdiff
path: root/source3/tdb
diff options
context:
space:
mode:
Diffstat (limited to 'source3/tdb')
-rw-r--r--source3/tdb/tdb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c
index 2c94f94587..d68df03776 100644
--- a/source3/tdb/tdb.c
+++ b/source3/tdb/tdb.c
@@ -560,6 +560,7 @@ static tdb_off tdb_dump_record(TDB_CONTEXT *tdb, tdb_off offset)
static int tdb_dump_chain(TDB_CONTEXT *tdb, int i)
{
tdb_off rec_ptr, top;
+ int hash_length = 0;
top = TDB_HASH_TOP(i);
@@ -574,8 +575,11 @@ static int tdb_dump_chain(TDB_CONTEXT *tdb, int i)
while (rec_ptr) {
rec_ptr = tdb_dump_record(tdb, rec_ptr);
+ hash_length += 1;
}
+ printf("chain %d length %d\n", i, hash_length);
+
return tdb_unlock(tdb, i, F_WRLCK);
}