Skip to content

Commit 8f06845

Browse files
committed
fixup to schemeshard: separate core and operations api
1 parent 096def8 commit 8f06845

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

ydb/core/tx/schemeshard/schemeshard_impl.cpp

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4446,19 +4446,22 @@ TSchemeShard::TSchemeShard(const TActorId &tablet, TTabletStorageInfo *info)
44464446
COUNTER_PQ_STATS_BATCH_LATENCY)
44474447
, AllowDataColumnForIndexTable(0, 0, 1)
44484448
{
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+
}
44504461

44514462
//NOTE: TSchemeshardState additional initialization
44524463
//
44534464

4454-
TabletCountersPtr.Reset(new TProtobufTabletCounters<
4455-
ESimpleCounters_descriptor,
4456-
ECumulativeCounters_descriptor,
4457-
EPercentileCounters_descriptor,
4458-
ETxTypes_descriptor
4459-
>());
4460-
TabletCounters = TabletCountersPtr.Get();
4461-
44624465
BackgroundSessionsManager = std::make_shared<NKikimr::NOlap::NBackground::TSessionsManager>(std::make_shared<NBackground::TAdapter>(tablet, NKikimr::NOlap::TTabletId(TabletID()), *this));
44634466

44644467
ExternalSourceFactory = NExternalSource::CreateExternalSourceFactory({});

0 commit comments

Comments
 (0)