diff options
author | Jeremy Allison <jra@samba.org> | 2006-11-30 03:25:07 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:28:40 -0500 |
commit | 9da0c020571d901569e552224bfedd8bedbf43ba (patch) | |
tree | 1ce26528d9962082dacecaaafb5fe5f437300d0a /source4/lib/tdb/include/tdb.h | |
parent | 50821ebea329e2a2b719aca153d4af6cb2bf7f79 (diff) | |
download | samba-9da0c020571d901569e552224bfedd8bedbf43ba.tar.gz samba-9da0c020571d901569e552224bfedd8bedbf43ba.tar.bz2 samba-9da0c020571d901569e552224bfedd8bedbf43ba.zip |
r19960: Add code to check for loops in the free list.
Should help us validate tdb's against corruption.
Jeremy.
(This used to be commit bd0710fa09799cb496b1f9f365c57c3b542445f3)
Diffstat (limited to 'source4/lib/tdb/include/tdb.h')
-rw-r--r-- | source4/lib/tdb/include/tdb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/tdb/include/tdb.h b/source4/lib/tdb/include/tdb.h index 4d29cece04..cbcaf9023c 100644 --- a/source4/lib/tdb/include/tdb.h +++ b/source4/lib/tdb/include/tdb.h @@ -136,6 +136,7 @@ int tdb_chainunlock_read(struct tdb_context *tdb, TDB_DATA key); /* Debug functions. Not used in production. */ void tdb_dump_all(struct tdb_context *tdb); int tdb_printfreelist(struct tdb_context *tdb); +int tdb_validate_freelist(struct tdb_context *tdb, int *pnum_entries); extern TDB_DATA tdb_null; |