mirror of https://gitee.com/bigwinds/arangodb
moveShard jobs running
This commit is contained in:
commit
ec249e0d06
|
@ -51,7 +51,7 @@ MoveShard::MoveShard(Node const& snapshot, Agent* agent,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (std::exception const& e) {
|
} catch (std::exception const& e) {
|
||||||
LOG_TOPIC(WARN, Logger::AGENCY) << e.what() << __FILE__ << __LINE__;
|
LOG_TOPIC(WARN, Logger::AGENCY) << e.what() << ": " << __FILE__ << ":" << __LINE__;
|
||||||
finish("Shards/" + _shard, false, e.what());
|
finish("Shards/" + _shard, false, e.what());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,7 @@ MoveShard::~MoveShard() {}
|
||||||
bool MoveShard::create() {
|
bool MoveShard::create() {
|
||||||
|
|
||||||
// Lookup from server
|
// Lookup from server
|
||||||
if (_from.find("DBServer") == 0) {
|
if (_from.compare("DBServer") == 0) {
|
||||||
try {
|
try {
|
||||||
_from = uuidLookup(_snapshot, _from);
|
_from = uuidLookup(_snapshot, _from);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
@ -69,7 +69,6 @@ bool MoveShard::create() {
|
||||||
"MoveShard: From server " << _from << " does not exist";
|
"MoveShard: From server " << _from << " does not exist";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lookup to Server
|
// Lookup to Server
|
||||||
if (_to.find("DBServer") == 0) {
|
if (_to.find("DBServer") == 0) {
|
||||||
try {
|
try {
|
||||||
|
@ -256,7 +255,7 @@ bool MoveShard::start() {
|
||||||
try {
|
try {
|
||||||
todo.add(_jb->slice()[0].get(_agencyPrefix + toDoPrefix + _jobId));
|
todo.add(_jb->slice()[0].get(_agencyPrefix + toDoPrefix + _jobId));
|
||||||
} catch (std::exception const& e) {
|
} catch (std::exception const& e) {
|
||||||
LOG_TOPIC(WARN, Logger::AGENCY) << e.what() << __FILE__ << __LINE__;
|
LOG_TOPIC(WARN, Logger::AGENCY) << e.what() << ": " << __FILE__ << ":" << __LINE__;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
todo.close();
|
todo.close();
|
||||||
|
|
Loading…
Reference in New Issue