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

Do not call deprecated NamespaceString::db() in sharding code

    XMLWordPrintableJSON

Details

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

    Description

      As we are making NamespaceString::db() private, we should not call this function in sharding code.
      For serialization db of nss, we should call serialize function of Util class.
      For check if a db name is admin/config/local, we'd better to call `isAdminDb()`, `isConfigDb()` etc.
      For compare tenant db names, we'd better to compare the DatabaseName objects.

      Attachments

        Activity

          People

            didier.nadeau@mongodb.com Didier Nadeau
            sophia.tan@mongodb.com Sophia Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: