]> git.ozlabs.org Git - ccan/commit - ccan/tdb/tdb.c
Import from SAMBA tdb:
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 29 Jul 2009 23:17:27 +0000 (08:47 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 29 Jul 2009 23:17:27 +0000 (08:47 +0930)
commit51b9a2e9f78cab95fe69f9efb0b37552082cdf8d
tree4c89c43401dff4a583b2aa012261d79ac7b7a82a
parent43ae196c43d739ee06dbe31e0032f1b5fe811e3b
Import from SAMBA tdb:
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
ccan/tdb/tdb.c
ccan/tdb/tdb.h