mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-02 11:15:50 +08:00
- Do not try to figure out the sequencer locality if knob
ENABLE_VERSION_VECTOR_HA_OPTIMIZATION is disabled.
This commit is contained in:
parent
8808d93813
commit
2c85bb71c1
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user