This commit is contained in:
Daniel 2024-05-12 23:04:00 +08:00
parent b959cc2beb
commit 60380f5dee
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 21 additions and 16 deletions

View file

@ -503,6 +503,10 @@ func genTreeID(tree *parse.Tree) {
func FullReindex() {
task.AppendTask(task.DatabaseIndexFull, fullReindex)
task.AppendTask(task.DatabaseIndexRef, IndexRefs)
go func() {
sql.WaitForWritingDatabase()
ResetVirtualBlockRefCache()
}()
task.AppendTaskWithTimeout(task.DatabaseIndexEmbedBlock, 30*time.Second, autoIndexEmbedBlock)
cache.ClearDocsIAL()
cache.ClearBlocksIAL()