Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 自动校验数据库索引 https://github.com/siyuan-note/siyuan/issues/7016

Liang Ding58975bf4eafd
diff --git a/kernel/treenode/blocktree.go b/kernel/treenode/blocktree.go
index f40064ae87..d1a26f2f5e 100644
--- a/kernel/treenode/blocktree.go
+++ b/kernel/treenode/blocktree.go
@@ -117,13 +117,12 @@ func CeilBlockCount(count int) int {
}
func GetNotExistPaths(boxID string, paths []string) (ret []string) {
- tmp := blockTrees
-
pathsMap := map[string]bool{}
for _, path := range paths {
pathsMap[path] = true
}
+ tmp := blockTrees
for _, blockTree := range tmp {
if blockTree.BoxID != boxID {
continue