diff options
Diffstat (limited to 'lib/tdb2/tdb2.h')
-rw-r--r-- | lib/tdb2/tdb2.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/tdb2/tdb2.h b/lib/tdb2/tdb2.h index 7967b60f7b..ebfc918404 100644 --- a/lib/tdb2/tdb2.h +++ b/lib/tdb2/tdb2.h @@ -508,6 +508,16 @@ void tdb_unlockall_read(struct tdb_context *tdb); enum TDB_ERROR tdb_wipe_all(struct tdb_context *tdb); /** + * tdb_repack - repack the database + * @tdb: the tdb context returned from tdb_open() + * + * This repacks the database; if it is suffering from a great deal of + * fragmentation this might help. However, it can take twice the + * memory of the existing TDB. + */ +enum TDB_ERROR tdb_repack(struct tdb_context *tdb); + +/** * tdb_check - check a TDB for consistency * @tdb: the tdb context returned from tdb_open() * @check: function to check each key/data pair (or NULL) |