Each query parser initializer set should be grouped by a single initializer that depends on "default"

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • v4.4
    • Query Optimization 2021-05-31
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently all of the register expression initializers depend on a single initializer, so things that need to go before expressions can depend on that. We should do the same thing for document sources.

      When we register a parser using REGISTER_DOCUMENT_SOURCE, REGISTER_EXPRESSION, etc, we need to make sure the initializer declares its dependency on the "default" initializer. The "default" initializer is responsible for initializing serverGlobalParams, which we depend on for FCV and feature flags. We should make the grouped initializer responsible for this dependency.

      Usually the MONGO_INITIALIZER macro handles this, but we are using MONGO_INITIALIZER_GENERAL in at least one place (to declare reverse-dependencies).

            Assignee:
            Anton Korshunov
            Reporter:
            David Percy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: