diff --git a/arangod/Agency/FailedFollower.cpp b/arangod/Agency/FailedFollower.cpp index 2f7ed71078..66a01e970a 100644 --- a/arangod/Agency/FailedFollower.cpp +++ b/arangod/Agency/FailedFollower.cpp @@ -124,7 +124,7 @@ bool FailedFollower::start() { std::string curPath = curColPrefix + _database + "/" + _collection + "/" + _shard + "/servers"; - Node const& current = _snapshot(curPath); + Node const& planned = _snapshot(planPath); // Copy todo to pending @@ -169,7 +169,7 @@ bool FailedFollower::start() { // --- Add new server to the list pending.add(_agencyPrefix + planPath, VPackValue(VPackValueType::Array)); - for(const auto& i : VPackArrayIterator(current.slice())) { + for(const auto& i : VPackArrayIterator(planned.slice())) { if (i.copyString() != _from) { pending.add(i); } else {