mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
🎨 tree not found appears when rebuilding index https://github.com/siyuan-note/siyuan/issues/11036
This commit is contained in:
parent
1ae39777a6
commit
16c665bfa7
4 changed files with 16 additions and 12 deletions
|
|
@ -31,6 +31,7 @@ import (
|
|||
"github.com/panjf2000/ants/v2"
|
||||
util2 "github.com/siyuan-note/dejavu/util"
|
||||
"github.com/siyuan-note/logging"
|
||||
"github.com/siyuan-note/siyuan/kernel/task"
|
||||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
"github.com/vmihailenco/msgpack/v5"
|
||||
)
|
||||
|
|
@ -504,6 +505,12 @@ func SaveBlockTree(force bool) {
|
|||
blockTreeLock.Lock()
|
||||
defer blockTreeLock.Unlock()
|
||||
|
||||
if task.ContainIndexTask() {
|
||||
//logging.LogInfof("skip saving block tree because indexing")
|
||||
return
|
||||
}
|
||||
//logging.LogInfof("saving block tree")
|
||||
|
||||
start := time.Now()
|
||||
if err := os.MkdirAll(util.BlockTreePath, 0755); nil != err {
|
||||
logging.LogErrorf("create block tree dir [%s] failed: %s", util.BlockTreePath, err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue