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

Check DatabaseName object is admin, config or local via functions

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

      Currently, we have isAdminDB(), isConfigDB() and isLocalDB() in NamespaceString class. We also need the similar functions in DatabaseName class.
      Here are the motivations to do this:

      • DatabaseName::db() will be private. Then, we cannot compare the result of `db()` with string "local", "config" and "local".
      • Put all the raw db string compare into one central place.

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

              Created:
              Updated:
              Resolved: