Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-40964

Change lookupNSSByUUID to return boost::optional<NamespaceString> instead of NamespaceString

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.11
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Fully Compatible
    • Storage NYC 2019-05-06, Storage NYC 2019-05-20
    • 23

      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.

            Assignee:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Reporter:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: