Skip to content

Commit 3b45c90

Browse files
authored
Fix a reversed MissingConfig counter in coordinator (#12907)
1 parent 8b4e2e3 commit 3b45c90

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ydb/core/tx/coordinator/coordinator__configure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ struct TTxCoordinator::TTxConfigure : public TTransactionBase<TTxCoordinator> {
123123
if (ConfigurationApplied) {
124124
Self->Execute(Self->CreateTxInit(), ctx);
125125
} else {
126-
Self->SetCounter(COUNTER_MISSING_CONFIG, Self->Config.HaveProcessingParams ? 1 : 0);
126+
Self->SetCounter(COUNTER_MISSING_CONFIG, Self->Config.HaveProcessingParams ? 0 : 1);
127127
if (Self->Config.HaveProcessingParams) {
128128
Self->SubscribeToSiblings();
129129
}

ydb/core/tx/coordinator/coordinator__init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ struct TTxCoordinator::TTxInit : public TTransactionBase<TTxCoordinator> {
124124
Self->Config.Resolution = PlanResolution;
125125
Self->Config.ReducedResolution = ReducedResolution;
126126
Self->Config.HaveProcessingParams = HaveProcessingParams;
127-
Self->SetCounter(COUNTER_MISSING_CONFIG, HaveProcessingParams ? 1 : 0);
127+
Self->SetCounter(COUNTER_MISSING_CONFIG, HaveProcessingParams ? 0 : 1);
128128

129129
if (LastBlockedActor && LastPlanned < LastBlockedStep) {
130130
Self->RestoreState(LastBlockedActor, LastBlockedStep);

0 commit comments

Comments
 (0)