mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 11:50:04 -06:00
🐛 更新或删除文档后立即点击重建索引导致死锁 Fix https://github.com/siyuan-note/siyuan/issues/5768
This commit is contained in:
@@ -59,6 +59,10 @@ func init() {
|
||||
func InitDatabase(forceRebuild bool) (err error) {
|
||||
util.IncBootProgress(2, "Initializing database...")
|
||||
|
||||
if forceRebuild {
|
||||
WaitForWritingDatabase()
|
||||
}
|
||||
|
||||
initDBConnection()
|
||||
|
||||
if !forceRebuild {
|
||||
|
||||
Reference in New Issue
Block a user