mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ensure fts is pre-initialized when re-indexing
This commit is contained in:
parent
04f6ba2b64
commit
ec0b86de4b
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user