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

Construct the global ServiceContext inside a MONGO_INITIALIZER

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0-rc0
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible
    • 0

      Longer term, the goal is to construct ServiceContext instances after execution of MONGO_INITIALIZERS completes. Doing this requires that developers be able to register extra actions to take on each ServiceContext's construction and destruction, and that registration naturally belongs inside MONGO_INITIALIZERS. This task is to partially revert the work that caused the global ServiceContext to be constructed before execution of MONGO_INITIALIZERS, in such a way that enables the longer term goal.

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: