[SERVER-40964] Change lookupNSSByUUID to return boost::optional<NamespaceString> instead of NamespaceString Created: 02/May/19  Updated: 29/Oct/23  Resolved: 07/May/19

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

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

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Sprint: Storage NYC 2019-05-06, Storage NYC 2019-05-20
Participants:
Linked BF Score: 23

 Description   

Right now, we have lookupUUIDByNSS which returns boost::optional<CollectionUUID> and lookupNSSByUUID which returns NamespaceString. We should change lookupNSSByUUID to return boost::optional<NamespaceString> to avoid any confusion, as we can return an empty NamespaceString object if the NSS is not found by the UUID and to match the two functions behaviour.



 Comments   
Comment by Githook User [ 07/May/19 ]

Author:

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

Message: SERVER-40964 Change lookupNSSByUUID to return boost::optional<NamespaceString> instead of NamespaceString
Branch: master
https://github.com/mongodb/mongo/commit/28de51de6adb41ce4cdb678812d37b726ff3a3f9

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