mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
🐛 更新或删除文档后立即点击重建索引导致死锁 Fix https://github.com/siyuan-note/siyuan/issues/5768
This commit is contained in:
parent
7f9c598061
commit
46ed13a840
2 changed files with 5 additions and 1 deletions
|
|
@ -59,6 +59,10 @@ func init() {
|
|||
func InitDatabase(forceRebuild bool) (err error) {
|
||||
util.IncBootProgress(2, "Initializing database...")
|
||||
|
||||
if forceRebuild {
|
||||
WaitForWritingDatabase()
|
||||
}
|
||||
|
||||
initDBConnection()
|
||||
|
||||
if !forceRebuild {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue