SERVER-116294 SetClusterParameterCoordinatorDocument crash on upgrade due to new non-optional field missing (#45965) (#46153)
GitOrigin-RevId: 95c9f75235bdc75c28dcb2a74cfef3eadcf207dc
This commit is contained in:
parent
45279cc75b
commit
7a9dabec9c
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -79,3 +79,4 @@ structs:
|
||||
description:
|
||||
"If true, this cluster parameter change can run during a topology
|
||||
change"
|
||||
optional: true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user