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

Remove NamespaceStringOrUUID::dbname()

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • Serverless
    • Fully Compatible
    • 1

    Description

      NamespaceStringOrUUID::dbName() returns the dbName either that's on the NamespaceString or that's stored on NamespaceStringOrUUID itself. There isn't any need for NamespaceStringOrUUID::dbname(), and it's confusing to have so many methods that return the db name.

      The function is only used in about 10 places, all of which can be converted to using db() instead. We'll need to change the code that generates the _dbName member for IDL defined command types here - we can just call NamespaceStringOrUUID::db().toString() here as well, the code that exists currently is essentially the same behavior as NamespaceStringOrUUID::db().

      Attachments

        Activity

          People

            didier.nadeau@mongodb.com Didier Nadeau
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: