summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/config/configsvr_move_chunk_command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/config/configsvr_move_chunk_command.cpp')
-rw-r--r--src/mongo/db/s/config/configsvr_move_chunk_command.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/mongo/db/s/config/configsvr_move_chunk_command.cpp b/src/mongo/db/s/config/configsvr_move_chunk_command.cpp
index 41d1679b4c9..cfa02c94711 100644
--- a/src/mongo/db/s/config/configsvr_move_chunk_command.cpp
+++ b/src/mongo/db/s/config/configsvr_move_chunk_command.cpp
@@ -96,20 +96,10 @@ public:
repl::ReadConcernArgs::get(opCtx) =
repl::ReadConcernArgs(repl::ReadConcernLevel::kLocalReadConcern);
- auto request = uassertStatusOK(
- BalanceChunkRequest::parseFromConfigCommand(cmdObj, false /* requireUUID */));
+ auto request = uassertStatusOK(BalanceChunkRequest::parseFromConfigCommand(cmdObj));
const auto& nss = request.getNss();
- // In case of mixed binaries including v5.0, the collection UUID field may not be attached
- // to the chunk.
- if (!request.getChunk().hasCollectionUUID_UNSAFE()) {
- // TODO (SERVER-60792): Remove the following logic after v6.0 branches out.
- const auto& collection = Grid::get(opCtx)->catalogClient()->getCollection(
- opCtx, nss, repl::ReadConcernLevel::kLocalReadConcern);
- request.setCollectionUUID(collection.getUuid()); // Set collection UUID on chunk member
- }
-
if (request.hasToShardId()) {
uassertStatusOK(Balancer::get(opCtx)->moveSingleChunk(opCtx,
nss,