clear es attributes during initial sync

This commit is contained in:
Jack Robison 2021-10-08 16:34:48 -04:00
parent 79630767c2
commit d3516f299e
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -345,6 +345,11 @@ class BlockProcessor:
"applying extended claim expiration fork on claims accepted by, %i", self.height
)
await self.run_in_thread_with_lock(self.db.apply_expiration_extension_fork)
if self.db.first_sync:
self.db.search_index.clear_caches()
self.touched_claims_to_send_es.clear()
self.removed_claims_to_send_es.clear()
self.activation_info_to_send_es.clear()
# TODO: we shouldnt wait on the search index updating before advancing to the next block
if not self.db.first_sync:
await self.db.reload_blocking_filtering_streams()