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

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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Serverless
    • Fully Compatible
    • Server Serverless 2023-07-24
    • 1

      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.

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

              Created:
              Updated:
              Resolved: