Don't unassign ranges from dest servers if they are skipped. (#8611)

Co-authored-by: He Liu <heliu@apple.com>
This commit is contained in:
He Liu 2022-10-31 12:07:42 -07:00 committed by GitHub
parent 891a5bee10
commit 8d76636a7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -2401,6 +2401,9 @@ ACTOR Future<Void> cleanUpDataMove(Database occ,
.detail("ReadVersion", tr.getReadVersion().get());
if (destId != dataMoveId) {
for (const auto& uid : dest) {
physicalShardMap[uid].push_back(Shard(rangeIntersectKeys, destId));
}
TraceEvent(SevVerbose, "CleanUpDataMoveSkipShard", dataMoveId)
.detail("DataMoveID", dataMoveId)
.detail("ShardRange", rangeIntersectKeys)