ldb: repack old format database if GUID indexing enabled
authorAaron Haslett <aaronhaslett@catalyst.net.nz>
Mon, 13 May 2019 04:37:25 +0000 (16:37 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 29 May 2019 04:41:24 +0000 (04:41 +0000)
commit73763acf49c24727e2deaaa061be8a288ee7b3d5
treeeffec258b60063d943c51d3a7705daa803f21757
parentd6ded22cb617aeef75a415208b2ce56867b68047
ldb: repack old format database if GUID indexing enabled

VERY IMPORTANT PATCH
Now that we have a new packing format, we need to enable it by repacking
the database. We've decided to link all new database features together,
so once GUID indexing is enabled, the database will be repacked with
version 2 format. Repacking is done following the same iterate pattern as
reindexing.

Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
lib/ldb/ldb_key_value/ldb_kv.c
lib/ldb/ldb_key_value/ldb_kv.h
lib/ldb/ldb_key_value/ldb_kv_cache.c
lib/ldb/ldb_key_value/ldb_kv_index.c