File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -258,15 +258,22 @@ class TConfigsProvider : public TActorBootstrapped<TConfigsProvider> {
258258 }
259259
260260 struct TCounters {
261+ using TDynamicCounterPtr = ::NMonitoring::TDynamicCounterPtr;
261262 using TCounterPtr = ::NMonitoring::TDynamicCounters::TCounterPtr;
263+ TDynamicCounterPtr Counters;
262264 TCounterPtr ScheduledConfigUpdates;
263265 TCounterPtr InflightConfigUpdates;
264266
265- explicit TCounters (::NMonitoring::TDynamicCounterPtr counters)
266- : ScheduledConfigUpdates(counters->GetCounter (" ScheduledConfigUpdates" , false ))
267+ explicit TCounters (TDynamicCounterPtr counters)
268+ : Counters(counters)
269+ , ScheduledConfigUpdates(counters->GetCounter (" ScheduledConfigUpdates" , false ))
267270 , InflightConfigUpdates(counters->GetCounter (" InflightConfigUpdates" , false ))
268271 {
269272 }
273+
274+ ~TCounters () {
275+ Counters->ResetCounters ();
276+ }
270277 };
271278
272279public:
You can’t perform that action at this time.
0 commit comments