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

Introduce some sort of decoration mechanism on InitializerContext

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability

      In order to give *GlobalParams proper APIs, we need a mechanism for the
      MONGO_INITIALIZER* family of macros to give corresponding code access to mutable GlobalParam data structures that the rest of the codebase cannot use.
       
      Without some sort of mechanism to bind arbitrary data structures to the InitializerContext at runtime, we'd need to directly add data members to InitializerContext. Doing that would bring all sorts of undesirable dependencies into the InitializerContext, which is used for all executables. 

            Assignee:
            Unassigned Unassigned
            Reporter:
            matt.diener@mongodb.com Matt Diener (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: