🎨 重建索引前清空数据库队列

This commit is contained in:
Liang Ding 2023-01-09 00:04:49 +08:00
parent 3f1cbb2d1d
commit 248eecb871
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 7 additions and 0 deletions

View file

@ -64,6 +64,7 @@ func InitDatabase(forceRebuild bool) (err error) {
util.IncBootProgress(2, "Initializing database...")
if forceRebuild {
ClearQueue()
WaitForWritingDatabase()
}