@@ -4446,19 +4446,22 @@ TSchemeShard::TSchemeShard(const TActorId &tablet, TTabletStorageInfo *info)
4446
4446
COUNTER_PQ_STATS_BATCH_LATENCY)
4447
4447
, AllowDataColumnForIndexTable(0 , 0 , 1 )
4448
4448
{
4449
- SelfPinger = new TSelfPinger (SelfTabletId (), TabletCounters);
4449
+ {
4450
+ using TSchemeShardCounters = TProtobufTabletCounters<
4451
+ ESimpleCounters_descriptor,
4452
+ ECumulativeCounters_descriptor,
4453
+ EPercentileCounters_descriptor,
4454
+ ETxTypes_descriptor
4455
+ >;
4456
+ TabletCountersPtr.Reset (new TSchemeShardCounters ());
4457
+ TabletCounters = TabletCountersPtr.Get ();
4458
+
4459
+ SelfPinger = new TSelfPinger (SelfTabletId (), TabletCounters);
4460
+ }
4450
4461
4451
4462
// NOTE: TSchemeshardState additional initialization
4452
4463
//
4453
4464
4454
- TabletCountersPtr.Reset (new TProtobufTabletCounters<
4455
- ESimpleCounters_descriptor,
4456
- ECumulativeCounters_descriptor,
4457
- EPercentileCounters_descriptor,
4458
- ETxTypes_descriptor
4459
- >());
4460
- TabletCounters = TabletCountersPtr.Get ();
4461
-
4462
4465
BackgroundSessionsManager = std::make_shared<NKikimr::NOlap::NBackground::TSessionsManager>(std::make_shared<NBackground::TAdapter>(tablet, NKikimr::NOlap::TTabletId (TabletID ()), *this ));
4463
4466
4464
4467
ExternalSourceFactory = NExternalSource::CreateExternalSourceFactory ({});
0 commit comments