Skip to content

Commit

Permalink
fix crash inside AS when statistics is disabled (#10949)
Browse files Browse the repository at this point in the history
  • Loading branch information
uzhastik authored Oct 26, 2024
1 parent fe19569 commit 67d74e2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ydb/core/tx/schemeshard/schemeshard_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7389,6 +7389,9 @@ void TSchemeShard::Handle(TEvPrivate::TEvSendBaseStatsToSA::TPtr&, const TActorC
}

void TSchemeShard::InitializeStatistics(const TActorContext& ctx) {
if (!EnableStatistics) {
return;
}
ResolveSA();
ctx.Schedule(TDuration::Seconds(30), new TEvPrivate::TEvSendBaseStatsToSA());
}
Expand Down Expand Up @@ -7445,10 +7448,6 @@ void TSchemeShard::ConnectToSA() {
}

TDuration TSchemeShard::SendBaseStatsToSA() {
if (!EnableStatistics) {
return TDuration::Max();
}

if (!SAPipeClientId) {
ResolveSA();
if (!StatisticsAggregatorId) {
Expand Down

0 comments on commit 67d74e2

Please sign in to comment.