1
0
Fork 0

cppcheck warnings

This commit is contained in:
Kaveh Vahedipour 2016-09-07 15:11:10 +02:00
parent 6921059a7b
commit beb46cc1a0
1 changed files with 2 additions and 4 deletions

View File

@ -243,13 +243,10 @@ JOB_STATUS AddFollower::status () {
}
if (status == PENDING) {
std::string planPath =
planColPrefix + _database + "/" + _collection + "/shards/" + _shard;
std::string curPath =
curColPrefix + _database + "/" + _collection + "/" + _shard + "/servers";
Slice current = _snapshot(curPath).slice();
std::vector<std::string> currv;
for (auto const& srv : VPackArrayIterator(current)) {
if (srv.copyString() == _newFollower) {
if (finish("Shards/" + _shard)) {
@ -257,6 +254,7 @@ JOB_STATUS AddFollower::status () {
}
}
}
}
return status;