[SERVER-71596] Factor out renameCollection Created: 23/Nov/22  Updated: 29/Oct/23  Resolved: 30/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Matt Kneiser Assignee: Matt Kneiser
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2023-02-06, Execution Team 2023-03-20, Execution Team 2023-04-03
Participants:

 Description   

It would improve readability to not share so much code between disparate cases in renameCollectionAcrossDatabases.

 

There are roughly 3 types of renames:

  • replication turned off
  • individual oplog inserts
  • batched writes

Additionally, narrow down from 2 to 1 implementations of renameBetweenDBs/renameCollectionAcrossDatabases()



 Comments   
Comment by Githook User [ 30/Mar/23 ]

Author:

{'name': 'Matt Kneiser', 'email': 'matt.kneiser@mongodb.com', 'username': 'themattman'}

Message: SERVER-71596 renameCollectionAcrossDatabases Cleanup
Branch: master
https://github.com/mongodb/mongo/commit/ac4380797e499bf24de13e1fa0d3f1d8d4b8ca70

Generated at Thu Feb 08 06:19:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.