🎨 改进内核任务调度机制提升稳定性 https://github.com/siyuan-note/siyuan/issues/7113

This commit is contained in:
Liang Ding 2023-01-26 13:47:12 +08:00
parent db777afc25
commit 5aff312a7b
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 64 additions and 54 deletions

View file

@ -92,17 +92,3 @@ func UpdateBlockContent(block *Block) {
tx.Commit()
putBlockCache(block)
}
func DeleteTree(table, rootID string) {
tx, err := beginTx()
if nil != err {
return
}
stmt := "DELETE FROM `" + table + "` WHERE root_id = ?"
if err = execStmtTx(tx, stmt, rootID); nil != err {
tx.Rollback()
return
}
tx.Commit()
}