[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: |
|
||||
| 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: |