1
0
Fork 0

Release _to server when abort because of dropped collection or `something serious went wrong`. (#9267)

This commit is contained in:
Lars Maier 2019-06-17 15:04:44 +02:00 committed by Frank Celler
parent a866f8c6fd
commit 50ce41e062
1 changed files with 2 additions and 2 deletions

View File

@ -417,7 +417,7 @@ JOB_STATUS MoveShard::status() {
std::string planPath = planColPrefix + _database + "/" + _collection;
if (!_snapshot.has(planPath)) {
// Oops, collection is gone, simple finish job:
finish("", _shard, true, "collection was dropped");
finish(_to, _shard, true, "collection was dropped");
return FINISHED;
}
@ -661,7 +661,7 @@ JOB_STATUS MoveShard::pendingLeader() {
finishedAfterTransaction = true;
} else {
// something seriously wrong here, fail job:
finish("", _shard, false, "something seriously wrong");
finish(_to, _shard, false, "something seriously wrong");
return FAILED;
}