1
0
Fork 0

Increase Plan/Version if follower is removed in MoveShard. (#6664)

This was forgotten when we added the `remainsFollower` flag.
This commit is contained in:
Max Neunhöffer 2018-10-01 16:54:20 +02:00 committed by GitHub
parent 8b9a0f6a25
commit c4abcac276
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -591,6 +591,9 @@ JOB_STATUS MoveShard::pendingLeader() {
pre.add(plan);
}
});
if (!_remainsFollower) {
addIncreasePlanVersion(trx);
}
addPreconditionCollectionStillThere(pre, _database, _collection);
addRemoveJobFromSomewhere(trx, "Pending", _jobId);
Builder job;