mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 改进内核任务调度机制提升稳定性 https://github.com/siyuan-note/siyuan/issues/7113
This commit is contained in:
parent
c5f4d3c780
commit
6495574fea
8 changed files with 60 additions and 55 deletions
|
|
@ -37,13 +37,13 @@ type Ref struct {
|
|||
Type string
|
||||
}
|
||||
|
||||
func UpsertRefs(tx *sql.Tx, tree *parse.Tree) {
|
||||
if err := deleteRefsByPath(tx, tree.Box, tree.Path); nil != err {
|
||||
func upsertRefs(tx *sql.Tx, tree *parse.Tree) (err error) {
|
||||
if err = deleteRefsByPath(tx, tree.Box, tree.Path); nil != err {
|
||||
return
|
||||
}
|
||||
if err := deleteFileAnnotationRefsByPath(tx, tree.Box, tree.Path); nil != err {
|
||||
if err = deleteFileAnnotationRefsByPath(tx, tree.Box, tree.Path); nil != err {
|
||||
return
|
||||
}
|
||||
insertRef(tx, tree)
|
||||
err = insertRefs(tx, tree)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue