mirror of https://gitee.com/bigwinds/arangodb
Fix a typo in a variable name.
This commit is contained in:
parent
48c121bb24
commit
68941c1ea9
|
@ -2260,7 +2260,7 @@ std::vector<ServerID> ClusterInfo::getCurrentDBServers () {
|
||||||
/// our id
|
/// our id
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
static const std::string prefixTargetServerEndoint = "Target/MapIDToEndpoint/";
|
static const std::string prefixTargetServerEndpoint = "Target/MapIDToEndpoint/";
|
||||||
|
|
||||||
std::string ClusterInfo::getTargetServerEndpoint (ServerID const& serverID) {
|
std::string ClusterInfo::getTargetServerEndpoint (ServerID const& serverID) {
|
||||||
|
|
||||||
|
@ -2271,12 +2271,12 @@ std::string ClusterInfo::getTargetServerEndpoint (ServerID const& serverID) {
|
||||||
AgencyCommLocker locker("Target", "READ");
|
AgencyCommLocker locker("Target", "READ");
|
||||||
|
|
||||||
if (locker.successful()) {
|
if (locker.successful()) {
|
||||||
result = _agency.getValues(prefixTargetServerEndoint + serverID, false);
|
result = _agency.getValues(prefixTargetServerEndpoint + serverID, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result.successful()) {
|
if (result.successful()) {
|
||||||
result.parse(prefixTargetServerEndoint, false);
|
result.parse(prefixTargetServerEndpoint, false);
|
||||||
|
|
||||||
// check if we can find ourselves in the list returned by the agency
|
// check if we can find ourselves in the list returned by the agency
|
||||||
std::map<std::string, AgencyCommResultEntry>::const_iterator it = result._values.find(serverID);
|
std::map<std::string, AgencyCommResultEntry>::const_iterator it = result._values.find(serverID);
|
||||||
|
|
Loading…
Reference in New Issue