Skip to content

Commit e8a6b41

Browse files
authored
Statistics: disable some internal events without feature flag (#8159)
1 parent dc3e568 commit e8a6b41

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ydb/core/statistics/aggregator/tx_init.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,13 @@ struct TStatisticsAggregator::TTxInit : public TTxBase {
270270
Self->SubscribeForConfigChanges(ctx);
271271

272272
Self->Schedule(Self->PropagateInterval, new TEvPrivate::TEvPropagate());
273-
Self->Schedule(Self->TraversalPeriod, new TEvPrivate::TEvScheduleTraversal());
274-
Self->Schedule(Self->SendAnalyzePeriod, new TEvPrivate::TEvSendAnalyze());
273+
274+
if (Self->EnableColumnStatistics) {
275+
Self->Schedule(Self->TraversalPeriod, new TEvPrivate::TEvScheduleTraversal());
276+
Self->Schedule(Self->SendAnalyzePeriod, new TEvPrivate::TEvSendAnalyze());
277+
} else {
278+
SA_LOG_W("[" << Self->TabletID() << "] TTxInit::Complete. EnableColumnStatistics=false");
279+
}
275280

276281
Self->InitializeStatisticsTable();
277282

0 commit comments

Comments
 (0)