[SERVER-73353] Create a function CollectionCatalog::lookupCollection(NamespaceOrUUID) Created: 26/Jan/23  Updated: 29/Oct/23  Resolved: 06/Feb/23

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

Type: Task Priority: Major - P3
Reporter: Matthew Saltz (Inactive) Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2023-02-20, Execution Team 2023-02-06
Participants:

 Description   

Right now there are different variants of lookupCollectionByNamespace, lookupCollectionByUUID, etc. This makes it difficult for callers who have a NamespaceStringOrUUID, who need to then stitch together the right CollectionCatalog functions in order to do a lookup (e.g. resolve the namespace string from the UUID if there is one, then lookup by namespace, or lookup by UUID directly, etc.) It would be good to have a lookupCollection function that directly takes NamespaceStringOrUUID and does the proper lookup.



 Comments   
Comment by Githook User [ 06/Feb/23 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-73353 Support CollectionCatalog lookups by NamespaceStringOrUUID
Branch: master
https://github.com/mongodb/mongo/commit/836929386580b13a569a3d7d1e74125855c67584

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