Explorar o código

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

Liang Ding %!s(int64=2) %!d(string=hai) anos
pai
achega
2a33253591
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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++
 		}
 
-		if (confLimit && limit < count) || 7 < errCount {
+		if (confLimit && limit < count) || 3 < errCount {
 			break
 		}
 	}