repack the ldb after re-indexing
authorAndrew Tridgell <tridge@samba.org>
Tue, 16 Dec 2008 03:41:21 +0000 (14:41 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 16 Dec 2008 03:41:21 +0000 (14:41 +1100)
commit4380a374c1dec46ad77939604e548f0c79d9e2ec
tree46c8de27072521a4c20428c0a2b151cf8db23cdb
parentf320e3a659d2ef701e3770071375ca9781d98325
repack the ldb after re-indexing

re-indexing in ldb is triggered on any modification to the @ATTRIBUTES
or @INDEXLIST records. This happens to produce a worst-case
fragmentation of the database, as all @INDEX records are deleted then
re-created. By repacking after re-indexing we ensure that the database
ends up without extreme fragmentation.
source4/lib/ldb/ldb_tdb/ldb_index.c