AFAICT the operations executed while the reindexing
atomic is true do not issue any validation signals, so they don’t have an effect on the indexes.
I need to test this, but this would be surprising to me. I think the idea behind having a separate StartIndexBackgroundSync function that runs after index initialization is that indexes should be able to receive signals during reindexing when -reindex
is used so they do not need to completely resync when indexing is finished.
Will check on this, but I think I might recommend just keeping behavior unchanged in this PR so it is a more straightforward refactoring. Or this behavior is worth changing, it seems like it could be moved to a separate commit.