SERVER-116294 SetClusterParameterCoordinatorDocument crash on upgrade due to new non-optional field missing (#45965) (#46153)

GitOrigin-RevId: 95c9f75235bdc75c28dcb2a74cfef3eadcf207dc
This commit is contained in:
wolfee 2026-01-15 12:01:17 +01:00 committed by MongoDB Bot
parent 45279cc75b
commit 7a9dabec9c
2 changed files with 2 additions and 1 deletions

View File

@ -159,7 +159,7 @@ void ConfigsvrCoordinatorService::checkIfConflictsWithOtherInstances(
const auto stateDoc = SetClusterParameterCoordinatorDocument::parse(
IDLParserContext("CoordinatorDocument"), initialState);
if (stateDoc.getCompatibleWithTopologyChange()) {
if (stateDoc.getCompatibleWithTopologyChange().value_or(false)) {
return;
}

View File

@ -79,3 +79,4 @@ structs:
description:
"If true, this cluster parameter change can run during a topology
change"
optional: true