Port from SAMBA ctdb: commit 936d76802f98d04d9743b2ca8eeeaadd4362db51 Author: Andrew...
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 29 Jul 2009 06:32:51 +0000 (16:02 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 4 Aug 2009 07:13:21 +0000 (16:43 +0930)
commitfe3ceb101a5a9c336973c2c6c31406bd8181c2fe
tree65c9642c48f14ee7995ca1dc43da0e97c6b20e2c
parente03980add02a28609a7a0a0c87ebc85419b98144
Port from SAMBA ctdb: commit 936d76802f98d04d9743b2ca8eeeaadd4362db51 Author: Andrew Tridgell <tridge@samba.org> Date: Tue Dec 16 14:38:17 2008 +1100

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