Avoid temporary allocations of DatabaseName

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0, 7.0.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Server Serverless 2023-05-01
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The changes in SERVER-75733 removed an implicit StringData constructor from DatabaseName, instead opting to wrap most calls to NamespaceString::db() with an allocation of DatabaseName. This ticket will finish the job by directly returning the embedded DatabaseName instead of allocating a new one.

            Assignee:
            Matt Broadstone
            Reporter:
            Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: