Skip to content

Commit 2e5fd14

Browse files
authored
bugfix for incorrect event scheduling when EnableStatistics is disabled (#10995)
1 parent 6e97574 commit 2e5fd14

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
@@ -7389,9 +7389,6 @@ void TSchemeShard::Handle(TEvPrivate::TEvSendBaseStatsToSA::TPtr&, const TActorC
73897389
}
73907390

73917391
void TSchemeShard::InitializeStatistics(const TActorContext& ctx) {
7392-
if (!EnableStatistics) {
7393-
return;
7394-
}
73957392
ResolveSA();
73967393
ctx.Schedule(TDuration::Seconds(30), new TEvPrivate::TEvSendBaseStatsToSA());
73977394
}
@@ -7448,6 +7445,10 @@ void TSchemeShard::ConnectToSA() {
74487445
}
74497446

74507447
TDuration TSchemeShard::SendBaseStatsToSA() {
7448+
if (!EnableStatistics) {
7449+
return TDuration::Seconds(30);
7450+
}
7451+
74517452
if (!SAPipeClientId) {
74527453
ResolveSA();
74537454
if (!StatisticsAggregatorId) {

0 commit comments

Comments
 (0)