mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 清理块树中重复冗余的数据
This commit is contained in:
parent
de79543300
commit
c0240f20d6
4 changed files with 127 additions and 92 deletions
|
|
@ -181,6 +181,10 @@ func execOp(op *dbQueueOperation, tx *sql.Tx, context map[string]interface{}) (e
|
|||
}
|
||||
|
||||
func BatchRemoveAssetsQueue(hashes []string) {
|
||||
if 1 > len(hashes) {
|
||||
return
|
||||
}
|
||||
|
||||
dbQueueLock.Lock()
|
||||
defer dbQueueLock.Unlock()
|
||||
|
||||
|
|
@ -319,6 +323,10 @@ func RemoveTreeQueue(box, rootID string) {
|
|||
}
|
||||
|
||||
func BatchRemoveTreeQueue(rootIDs []string) {
|
||||
if 1 > len(rootIDs) {
|
||||
return
|
||||
}
|
||||
|
||||
dbQueueLock.Lock()
|
||||
defer dbQueueLock.Unlock()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue