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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.11
    • Component/s: Storage
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Storage NYC 2019-05-06, Storage NYC 2019-05-20
    • 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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: