diff options
| author | uzhastik <[email protected]> | 2024-10-26 13:25:58 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-10-26 13:25:58 +0300 |
| commit | 67d74e28294f43cd41c11c358ef5bfbbce97d84f (patch) | |
| tree | 4fa9547ad6b14b64d35bcf0ee9f3037760954eff | |
| parent | fe19569e52123f6bd1a30551466327bca83747ee (diff) | |
fix crash inside AS when statistics is disabled (#10949)
| -rw-r--r-- | ydb/core/tx/schemeshard/schemeshard_impl.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ydb/core/tx/schemeshard/schemeshard_impl.cpp b/ydb/core/tx/schemeshard/schemeshard_impl.cpp index 21043b9537b..d538f406080 100644 --- a/ydb/core/tx/schemeshard/schemeshard_impl.cpp +++ b/ydb/core/tx/schemeshard/schemeshard_impl.cpp @@ -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()); } @@ -7445,10 +7448,6 @@ void TSchemeShard::ConnectToSA() { } TDuration TSchemeShard::SendBaseStatsToSA() { - if (!EnableStatistics) { - return TDuration::Max(); - } - if (!SAPipeClientId) { ResolveSA(); if (!StatisticsAggregatorId) { |
