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

Avoid unnecessary construction of NamespaceString on collection acquisitions

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Sharding EMEA 2023-05-29

    Description

      Due to the ambiguity between these two overloads of CollectionAcquisitionRequest (by nss and by nssOrUuid), callers had to explicitly cast or unnecessarily construct a NamespaceString object when they acquire a collection given a NamespaceString::ConstantProxy (e.g. here).

      It should be enough to keep the by-nssOrUuid constructor, since the two are actually overlapping.

      Attachments

        Activity

          People

            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: