🎨 清理块树中重复冗余的数据

This commit is contained in:
Liang Ding
2023-02-01 15:22:09 +08:00
parent de79543300
commit c0240f20d6
4 changed files with 127 additions and 92 deletions

View File

@@ -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()