mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Update av
This commit is contained in:
parent
d96f09d2d4
commit
be1b34a163
2 changed files with 12 additions and 11 deletions
|
|
@ -200,17 +200,17 @@ func execOp(op *dbQueueOperation, tx *sql.Tx, context map[string]interface{}) (e
|
|||
}
|
||||
|
||||
func RebuildAttributeViewQueue(av *av.AttributeView) {
|
||||
dbQueueLock.Lock()
|
||||
defer dbQueueLock.Unlock()
|
||||
|
||||
newOp := &dbQueueOperation{av: av, inQueueTime: time.Now(), action: "av_rebuild"}
|
||||
for i, op := range operationQueue {
|
||||
if "av_rebuild" == op.action && op.av.ID == av.ID {
|
||||
operationQueue[i] = newOp
|
||||
return
|
||||
}
|
||||
}
|
||||
operationQueue = append(operationQueue, newOp)
|
||||
//dbQueueLock.Lock()
|
||||
//defer dbQueueLock.Unlock()
|
||||
//
|
||||
//newOp := &dbQueueOperation{av: av, inQueueTime: time.Now(), action: "av_rebuild"}
|
||||
//for i, op := range operationQueue {
|
||||
// if "av_rebuild" == op.action && op.av.ID == av.ID {
|
||||
// operationQueue[i] = newOp
|
||||
// return
|
||||
// }
|
||||
//}
|
||||
//operationQueue = append(operationQueue, newOp)
|
||||
}
|
||||
|
||||
func BatchRemoveAssetsQueue(hashes []string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue