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> {
258
258
}
259
259
260
260
struct TCounters {
261
+ using TDynamicCounterPtr = ::NMonitoring::TDynamicCounterPtr;
261
262
using TCounterPtr = ::NMonitoring::TDynamicCounters::TCounterPtr;
263
+ TDynamicCounterPtr Counters;
262
264
TCounterPtr ScheduledConfigUpdates;
263
265
TCounterPtr InflightConfigUpdates;
264
266
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 ))
267
270
, InflightConfigUpdates(counters->GetCounter (" InflightConfigUpdates" , false ))
268
271
{
269
272
}
273
+
274
+ ~TCounters () {
275
+ Counters->ResetCounters ();
276
+ }
270
277
};
271
278
272
279
public:
You can’t perform that action at this time.
0 commit comments