[SERVER-42119] Add shardsvrRenameCollection that wraps the existing mongod renameCollection command Created: 09/Jul/19  Updated: 29/Oct/23  Resolved: 25/Jul/19

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Task Priority: Major - P3
Reporter: Esha Maharishi (Inactive) Assignee: Jason Zhang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2019-07-29
Participants:

 Description   

We’ll need to define a _shardsvrRenameCollection request type which we can define in the new rename_collection idl file created as a part of SERVER-42120. We’ll also need to create the new command and should define it in a new file shardsvr_rename_collection.cpp. This command should just call the existing renameCollection command. The new configsvrRenameCollection should call this new command. _shardsvrShardCollection is a good example of the pattern we want to follow.



 Comments   
Comment by Jason Zhang [ 25/Jul/19 ]

Code review: https://mongodbcr.appspot.com/490060007/

EVG: https://evergreen.mongodb.com/version/5d39c1052a60ed17197cdd40

Comment by Githook User [ 25/Jul/19 ]

Author:

{'name': 'Jason Zhang', 'email': 'jason.zhang@mongodb.com'}

Message: SERVER-42119 Add shardsvrRenameCollection that wraps the existing mongod renameCollection command.
Branch: master
https://github.com/mongodb/mongo/commit/bbd8ad370bd4f32e58a9fdbed5e9ea7167f73704

Generated at Thu Feb 08 04:59:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.