1
0
Fork 0

removed unused variables

This commit is contained in:
jsteemann 2016-09-07 08:56:48 +02:00
parent b8767c1bd8
commit c14c6ab025
1 changed files with 1 additions and 4 deletions

View File

@ -62,10 +62,10 @@ bool AddFollower::create () {
std::string path, now(timepointToString(std::chrono::system_clock::now()));
// DBservers
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
std::string curPath =
curColPrefix + _database + "/" + _collection + "/" + _shard + "/servers";
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
Slice current = _snapshot(curPath).slice();
TRI_ASSERT(current.isArray());
TRI_ASSERT(current[0].isString());
@ -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)) {