mirror of https://gitee.com/bigwinds/arangodb
Fix Supervision bug in failedFollower.
This commit is contained in:
parent
dad4f34f7a
commit
c5d79c5a85
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue