mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 22:19:08 -05:00
🎨 清理块树中重复冗余的数据
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user