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

Avoid temporary allocations of DatabaseName

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.0-rc1
    • None
    • None
    • None
    • Fully Compatible
    • Server Serverless 2023-05-01

    Description

      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.

      Attachments

        Activity

          People

            matt.broadstone@mongodb.com Matt Broadstone
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: