mirror of https://gitee.com/bigwinds/arangodb
Release _to server when abort because of dropped collection or `something serious went wrong`. (#9267)
This commit is contained in:
parent
a866f8c6fd
commit
50ce41e062
|
@ -417,7 +417,7 @@ JOB_STATUS MoveShard::status() {
|
||||||
std::string planPath = planColPrefix + _database + "/" + _collection;
|
std::string planPath = planColPrefix + _database + "/" + _collection;
|
||||||
if (!_snapshot.has(planPath)) {
|
if (!_snapshot.has(planPath)) {
|
||||||
// Oops, collection is gone, simple finish job:
|
// Oops, collection is gone, simple finish job:
|
||||||
finish("", _shard, true, "collection was dropped");
|
finish(_to, _shard, true, "collection was dropped");
|
||||||
return FINISHED;
|
return FINISHED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -661,7 +661,7 @@ JOB_STATUS MoveShard::pendingLeader() {
|
||||||
finishedAfterTransaction = true;
|
finishedAfterTransaction = true;
|
||||||
} else {
|
} else {
|
||||||
// something seriously wrong here, fail job:
|
// something seriously wrong here, fail job:
|
||||||
finish("", _shard, false, "something seriously wrong");
|
finish(_to, _shard, false, "something seriously wrong");
|
||||||
return FAILED;
|
return FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue