[SERVER-60931] avoid namespace lookup when applying collMod command Created: 22/Oct/21  Updated: 29/Oct/23  Resolved: 27/Oct/21

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

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
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 2021-11-01
Participants:

 Description   

The oplog applier looks up the collection namespace by UUID before passing on the collMod request to the execution layer. This is no longer necessary with our new RAII helpers that accept both namespaces and UUIDs.



 Comments   
Comment by Githook User [ 27/Oct/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-60931 oplog application delegates UUID lookup to processCollModCommand()
Branch: master
https://github.com/mongodb/mongo/commit/553f2901fe2ae2cd9ca43ec74e020fa023966555

Comment by Githook User [ 26/Oct/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-60931 setFCV invokes collMod using db and uuid of collection rather than namespace
Branch: master
https://github.com/mongodb/mongo/commit/1c91e25803c01f4ccba5258a80b09735a5df3fad

Comment by Githook User [ 26/Oct/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-60931 pass CollMod details to coll_mod.cpp using IDL type
Branch: master
https://github.com/mongodb/mongo/commit/e0f313dc2f7c4a9a752cda37b9ec21ee5c035aec

Comment by Benety Goh [ 26/Oct/21 ]

One secondary goal of this ticket is to make the IDL generated type for the CollMod command available to the collMod implementation so that we can eventually deprecate the CollModRequest struct.

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