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

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

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

      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@mongodb.com Anton Korshunov
            Reporter:
            david.percy@mongodb.com David Percy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: