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

Move NamespaceString constructors private

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Serverless
    • Fully Compatible
    • Server Serverless 2023-02-06, Server Serverless 2023-02-20, Server Serverless 2023-03-06, Server Serverless 2023-03-20, Server Serverless 2023-04-03
    • 152
    • 8

      In order to enforce the correct behavior every time we construct a NamespaceString, we need to check global options. We must check these options from outside the NSS class itself, so we'll privatize the constructors and enforce construction through NamespaceStringUtil (which will need to be a friend class). There are some places that we construct an NSS today that are not yet ready for the behavior checks to be enforced, specifically some parts of the auth system. We may need to create specific functions to allow these to be constructed for now, and leave TODOs to remove those functions in the future.

            Assignee:
            janna.golden@mongodb.com Janna Golden
            Reporter:
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: