Ensure fts is pre-initialized when re-indexing

This commit is contained in:
Kovid Goyal 2022-05-02 21:45:26 +05:30
parent 04f6ba2b64
commit ec0b86de4b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -542,6 +542,7 @@ class Cache:
with self.write_lock: with self.write_lock:
self.backend.reindex_fts() self.backend.reindex_fts()
fts = self.initialize_fts() fts = self.initialize_fts()
fts.initialize(self.backend.conn) # ensure fts is pre-initialized needed for the tests
self._queue_next_fts_job() self._queue_next_fts_job()
return fts return fts