This commit is contained in:
Daniel 2024-10-14 20:39:16 +08:00
parent 2da4a885ef
commit 475155b7df
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
14 changed files with 17 additions and 62 deletions

View file

@ -606,7 +606,7 @@ func FullReindex() {
task.AppendTask(task.DatabaseIndexFull, fullReindex)
task.AppendTask(task.DatabaseIndexRef, IndexRefs)
go func() {
sql.WaitForWritingDatabase()
sql.FlushQueue()
ResetVirtualBlockRefCache()
}()
task.AppendTaskWithTimeout(task.DatabaseIndexEmbedBlock, 30*time.Second, autoIndexEmbedBlock)