Introduce some sort of decoration mechanism on InitializerContext

XMLWordPrintableJSON

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

      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
            Reporter:
            Matt Diener (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: