mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 06:54:08 +01:00
🐛 索引嵌入块内容可能会导致内核崩溃 https://github.com/siyuan-note/siyuan/issues/7213
This commit is contained in:
parent
dbf6965c30
commit
204580bf36
4 changed files with 29 additions and 14 deletions
|
|
@ -204,7 +204,7 @@ func autoIndexEmbedBlock(embedBlocks []*sql.Block) {
|
|||
if "" == embedBlock.Content {
|
||||
embedBlock.Content = "no query result"
|
||||
}
|
||||
sql.UpdateBlockContent(embedBlock)
|
||||
sql.UpdateBlockContentQueue(embedBlock)
|
||||
|
||||
if 63 <= i { // 一次任务中最多处理 64 个嵌入块,防止卡顿
|
||||
break
|
||||
|
|
@ -225,7 +225,7 @@ func updateEmbedBlockContent(embedBlockID string, queryResultBlocks []*EmbedBloc
|
|||
if "" == embedBlock.Content {
|
||||
embedBlock.Content = "no query result"
|
||||
}
|
||||
sql.UpdateBlockContent(embedBlock)
|
||||
sql.UpdateBlockContentQueue(embedBlock)
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue