Bläddra i källkod

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

Liang Ding 2 år sedan
förälder
incheckning
2a33253591
1 ändrade filer med 1 tillägg och 1 borttagningar
  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
 		}
 	}