mirror of https://gitee.com/bigwinds/arangodb
removed unused variables
This commit is contained in:
parent
b8767c1bd8
commit
c14c6ab025
|
@ -62,10 +62,10 @@ bool AddFollower::create () {
|
||||||
std::string path, now(timepointToString(std::chrono::system_clock::now()));
|
std::string path, now(timepointToString(std::chrono::system_clock::now()));
|
||||||
|
|
||||||
// DBservers
|
// DBservers
|
||||||
|
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||||
std::string curPath =
|
std::string curPath =
|
||||||
curColPrefix + _database + "/" + _collection + "/" + _shard + "/servers";
|
curColPrefix + _database + "/" + _collection + "/" + _shard + "/servers";
|
||||||
|
|
||||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
|
||||||
Slice current = _snapshot(curPath).slice();
|
Slice current = _snapshot(curPath).slice();
|
||||||
TRI_ASSERT(current.isArray());
|
TRI_ASSERT(current.isArray());
|
||||||
TRI_ASSERT(current[0].isString());
|
TRI_ASSERT(current[0].isString());
|
||||||
|
@ -243,13 +243,10 @@ JOB_STATUS AddFollower::status () {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status == PENDING) {
|
if (status == PENDING) {
|
||||||
std::string planPath =
|
|
||||||
planColPrefix + _database + "/" + _collection + "/shards/" + _shard;
|
|
||||||
std::string curPath =
|
std::string curPath =
|
||||||
curColPrefix + _database + "/" + _collection + "/" + _shard + "/servers";
|
curColPrefix + _database + "/" + _collection + "/" + _shard + "/servers";
|
||||||
|
|
||||||
Slice current = _snapshot(curPath).slice();
|
Slice current = _snapshot(curPath).slice();
|
||||||
std::vector<std::string> currv;
|
|
||||||
for (auto const& srv : VPackArrayIterator(current)) {
|
for (auto const& srv : VPackArrayIterator(current)) {
|
||||||
if (srv.copyString() == _newFollower) {
|
if (srv.copyString() == _newFollower) {
|
||||||
if (finish("Shards/" + _shard)) {
|
if (finish("Shards/" + _shard)) {
|
||||||
|
|
Loading…
Reference in New Issue