Skip to content

Commit c9088c0

Browse files
uzhastikalexd65536
andauthored
bugfix for incorrect event scheduling when EnableStatistics is disabl… (#11009)
Co-authored-by: Aleksandr Dmitriev <monster@ydb.tech>
1 parent dbd3a51 commit c9088c0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ydb/core/tx/schemeshard/schemeshard_impl.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7323,9 +7323,6 @@ void TSchemeShard::Handle(TEvPrivate::TEvSendBaseStatsToSA::TPtr&, const TActorC
73237323
}
73247324

73257325
void TSchemeShard::InitializeStatistics(const TActorContext& ctx) {
7326-
if (!EnableStatistics) {
7327-
return;
7328-
}
73297326
ResolveSA();
73307327
ctx.Schedule(TDuration::Seconds(30), new TEvPrivate::TEvSendBaseStatsToSA());
73317328
}
@@ -7382,6 +7379,10 @@ void TSchemeShard::ConnectToSA() {
73827379
}
73837380

73847381
TDuration TSchemeShard::SendBaseStatsToSA() {
7382+
if (!EnableStatistics) {
7383+
return TDuration::Seconds(30);
7384+
}
7385+
73857386
if (!SAPipeClientId) {
73867387
ResolveSA();
73877388
if (!StatisticsAggregatorId) {

0 commit comments

Comments
 (0)