From 0fa958b267e898facf978f5758a35b6fbb3e514e Mon Sep 17 00:00:00 2001 From: ionutboangiu Date: Mon, 9 Aug 2021 10:48:39 +0300 Subject: [PATCH] Update the function to use the correct tenant variable when calling GetStatQueue --- engine/stats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/stats.go b/engine/stats.go index 611bc8fd7..60dc452f2 100644 --- a/engine/stats.go +++ b/engine/stats.go @@ -544,7 +544,7 @@ func (sS *StatService) V1ResetStatQueue(tntID *utils.TenantID, rply *string) (er statQueueLockKey(tnt, tntID.ID)) defer guardian.Guardian.UnguardIDs(lkID) var sq *StatQueue - if sq, err = sS.dm.GetStatQueue(tntID.Tenant, tntID.ID, + if sq, err = sS.dm.GetStatQueue(tnt, tntID.ID, true, true, utils.NonTransactional); err != nil { return }