Need to rebuild reference map if making changes in batch mode

This commit is contained in:
Doug Blank 2016-01-05 13:44:43 -05:00
parent 195fdc3cf8
commit 3cb64cdca8

View File

@ -819,6 +819,8 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback):
self.env.txn_checkpoint()
# Only build surname list after surname index is surely back
self.build_surname_list()
# FIXME: need a User GUI update callback here:
self.reindex_reference_map(lambda percent: percent)
# Reset callbacks if necessary
if transaction.batch or not len(transaction):