ldb: Move where we update the pack format version
commitd427bd6c775d8117504e76eed42cd2c383512e34
authorTim Beale <timbeale@catalyst.net.nz>
Tue, 30 Jul 2019 03:02:25 +0000 (30 15:02 +1200)
committerGarming Sam <garming@samba.org>
Tue, 20 Aug 2019 03:40:28 +0000 (20 03:40 +0000)
tree92a1af50a334b340fbb3fdbda007be0d82400a26
parenta2b0fc7c00360f37ed6819f21380294b70d4a195
ldb: Move where we update the pack format version

Store it on the repack context so that we can log a more informative
message "Repacking from format x to format y".

While this is not really a big deal currently, it could be worth
recording for potential future scenarios (i.e. supporting three or more
pack versions), where upgrades could potentially skip an intermediary
pack format version.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14059

Signed-off-by: Tim Beale <timbeale@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_index.c