瀏覽代碼

:bug: 索引嵌入块内容可能会导致内核崩溃 https://github.com/siyuan-note/siyuan/issues/7213

Liang Ding 2 年之前
父節點
當前提交
2a33253591
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      kernel/sql/block_query.go

+ 1 - 1
kernel/sql/block_query.go

@@ -478,7 +478,7 @@ func selectBlocksRawStmt(stmt string, limit int) (ret []*Block) {
 			errCount++
 			errCount++
 		}
 		}
 
 
-		if (confLimit && limit < count) || 7 < errCount {
+		if (confLimit && limit < count) || 3 < errCount {
 			break
 			break
 		}
 		}
 	}
 	}