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)
commit936d76802f98d04d9743b2ca8eeeaadd4362db51
tree42bc48667e84e7fc016af2ca3130b33d5d6c7b6a
parent2e4247782bd5812bc8e7ea24194c8436748bb2fa
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
lib/tdb/common/tdb.c
lib/tdb/include/tdb.h