Move Unguard one level up to avoid deadlock on the continue case

This commit is contained in:
ionutboangiu
2023-03-07 10:58:57 -05:00
committed by Dan Christian Bogos
parent 0f6ef42c2d
commit d264dd1c5a

View File

@@ -317,8 +317,8 @@ func removeReverseFilterIndexForFilter(dm *DataManager, idxItmType, tnt, itemID
var indexes map[string]utils.StringMap
if indexes, err = dm.GetFilterIndexes(utils.PrefixToIndexCache[utils.ReverseFilterIndexes], tntFltrID,
utils.EmptyString, nil); err != nil {
guardian.Guardian.UnguardIDs(refID)
if err != utils.ErrNotFound {
guardian.Guardian.UnguardIDs(refID)
return
}
err = nil