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

Introduce some sort of decoration mechanism on InitializerContext

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Service Arch

    Description

      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. 

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            matt.diener@mongodb.com Matt Diener (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: