mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Resolve possible deadlocks in *StatS.processEvent
This commit is contained in:
committed by
Dan Christian Bogos
parent
c9f0671278
commit
dd872bebfa
@@ -338,6 +338,7 @@ func (sS *StatS) processEvent(ctx *context.Context, tnt string, args *utils.CGRE
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer matchSQs.unlock()
|
||||
|
||||
statQueueIDs = matchSQs.IDs()
|
||||
var withErrors bool
|
||||
@@ -362,8 +363,7 @@ func (sS *StatS) processEvent(ctx *context.Context, tnt string, args *utils.CGRE
|
||||
}
|
||||
if sS.processThresholds(ctx, matchSQs, args.APIOpts) != nil ||
|
||||
withErrors {
|
||||
return nil, err
|
||||
//err = utils.ErrPartiallyExecuted
|
||||
err = utils.ErrPartiallyExecuted
|
||||
}
|
||||
|
||||
var promIDs []string
|
||||
|
||||
Reference in New Issue
Block a user