mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 18:02:31 +08:00
Make getDesiredClusterKeyName const
This fixes a virtual function overload in NameQuorumChange
This commit is contained in:
parent
5f1ee16706
commit
0718329705
@ -1125,7 +1125,7 @@ struct NameQuorumChange final : IQuorumChange {
|
||||
CoordinatorsResult& t) override {
|
||||
return otherChange->getDesiredCoordinators(tr, oldCoordinators, cf, t);
|
||||
}
|
||||
std::string getDesiredClusterKeyName() const { return newName; }
|
||||
std::string getDesiredClusterKeyName() const override { return newName; }
|
||||
};
|
||||
Reference<IQuorumChange> nameQuorumChange(std::string const& name, Reference<IQuorumChange> const& other) {
|
||||
return Reference<IQuorumChange>(new NameQuorumChange( name, other ));
|
||||
|
@ -140,7 +140,7 @@ struct IQuorumChange : ReferenceCounted<IQuorumChange> {
|
||||
vector<NetworkAddress> oldCoordinators,
|
||||
Reference<ClusterConnectionFile>,
|
||||
CoordinatorsResult&) = 0;
|
||||
virtual std::string getDesiredClusterKeyName() { return std::string(); }
|
||||
virtual std::string getDesiredClusterKeyName() const { return std::string(); }
|
||||
};
|
||||
|
||||
// Change to use the given set of coordination servers
|
||||
|
Loading…
x
Reference in New Issue
Block a user