1
0
Fork 0

Fix Supervision bug in failedFollower.

This commit is contained in:
Max Neunhoeffer 2017-02-13 09:57:47 +01:00
parent dad4f34f7a
commit c5d79c5a85
1 changed files with 2 additions and 2 deletions

View File

@ -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 {