[SERVER-70468] Introduce some sort of decoration mechanism on InitializerContext Created: 11/Oct/22  Updated: 05/Dec/22

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Matt Diener (Inactive) Assignee: Backlog - Service Architecture
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-70448 Create an API for ServerGlobalParams Backlog
Assigned Teams:
Service Arch
Participants:

 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. 


Generated at Thu Feb 08 06:16:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.