From 12c47340455622c0494af4d4cff8bcbbbab75e65 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Thu, 5 Nov 2015 17:44:56 +0200 Subject: [PATCH] re-init counters in migrator --- cmd/cgr-loader/migrator_rc8.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/cgr-loader/migrator_rc8.go b/cmd/cgr-loader/migrator_rc8.go index a75530dd7..51a7ef182 100644 --- a/cmd/cgr-loader/migrator_rc8.go +++ b/cmd/cgr-loader/migrator_rc8.go @@ -231,6 +231,7 @@ func (mig MigratorRC8) migrateAccounts() error { newAcc.ActionTriggers[index].ThresholdType = strings.Replace(newAcc.ActionTriggers[index].ThresholdType, "_", "_event_", 1) } } + newAcc.InitCounters() newAccounts[keyIndex] = newAcc } // write data back