From c5d79c5a85fc135d8c6e79c32cd06fe72bff0b84 Mon Sep 17 00:00:00 2001 From: Max Neunhoeffer Date: Mon, 13 Feb 2017 09:57:47 +0100 Subject: [PATCH] Fix Supervision bug in failedFollower. --- arangod/Agency/FailedFollower.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {