- Do not try to figure out the sequencer locality if knob

ENABLE_VERSION_VECTOR_HA_OPTIMIZATION is disabled.
This commit is contained in:
Sreenath Bodagala 2022-06-15 16:08:31 +00:00
parent 8808d93813
commit 2c85bb71c1

View File

@ -117,8 +117,9 @@ struct MasterData : NonCopyable, ReferenceCounted<MasterData> {
forceRecovery = false;
}
balancer = resolutionBalancer.resolutionBalancing();
locality = myInterface.locality.dcId().present() ? std::stoi(myInterface.locality.dcId().get().toString())
: tagLocalityInvalid;
locality = (SERVER_KNOBS->ENABLE_VERSION_VECTOR_HA_OPTIMIZATION && myInterface.locality.dcId().present())
? std::stoi(myInterface.locality.dcId().get().toString())
: tagLocalityInvalid;
}
~MasterData() = default;
};