mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +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
|
|
@ -94,12 +94,12 @@ func docTitleImgAsset(root *ast.Node) *Asset {
|
|||
|
||||
func DeleteAssetsByHashes(hashes []string) {
|
||||
sqlStmt := "DELETE FROM assets WHERE hash IN ('" + strings.Join(hashes, "','") + "') OR hash = ''"
|
||||
tx, err := BeginTx()
|
||||
tx, err := beginTx()
|
||||
if nil != err {
|
||||
return
|
||||
}
|
||||
execStmtTx(tx, sqlStmt)
|
||||
CommitTx(tx)
|
||||
commitTx(tx)
|
||||
}
|
||||
|
||||
func QueryAssetByHash(hash string) (ret *Asset) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue