tdb: use tdb_freelist_merge_adjacent in tdb_freelist_size()
authorMichael Adam <obnox@samba.org>
Wed, 11 Jun 2014 15:26:51 +0000 (17:26 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 26 Jun 2014 08:00:11 +0000 (10:00 +0200)
commit56f9231c8ee3afb7ba7a1f56deee5181522ef5f4
tree33e506da558c9ddc35922998a082bd5a6adde8e2
parent843a8a5c7b82459fae2eee490da005a68e4ced91
tdb: use tdb_freelist_merge_adjacent in tdb_freelist_size()

So that we automatically defragment the free list when freelist_size is called
(unless the database is read only).

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
lib/tdb/common/freelist.c