imported the tdb_repack() code from CTDB
authorAndrew Tridgell <tridge@samba.org>
Tue, 16 Dec 2008 03:38:17 +0000 (14:38 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 16 Dec 2008 03:38:17 +0000 (14:38 +1100)
commit95b9e0c40134dca6a328b7944edad06b289a4507
tree0842b9a593739fc86e62ccdab6e672a50d91f6b6
parentbbf7fb0212ed58b7ab065bf36d8415b4e511ae18
imported the tdb_repack() code from CTDB

The tdb_repack() function repacks a TDB so that it has a single
freelist entry. The file doesn't shrink, but it does remove all
freelist fragmentation. This code originated in the CTDB vacuuming
code, but will now be used in ldb to cope with fragmentation from
re-indexing
tdb/common/tdb.c
tdb/include/tdb.h