[SERVER-34794] Construct the global ServiceContext inside a MONGO_INITIALIZER Created: 02/May/18  Updated: 29/Oct/23  Resolved: 02/May/18

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Andy Schwerin Assignee: Andy Schwerin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Participants:
Linked BF Score: 0

 Description   

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.



 Comments   
Comment by Githook User [ 02/May/18 ]

Author:

{'email': 'schwerin@mongodb.com', 'name': 'Andy Schwerin', 'username': 'amschwerin'}

Message: SERVER-34794 Construct the global ServiceContext inside a MONGO_INITIALIZER
Branch: master
https://github.com/mongodb/mongo/commit/970ace98679d499f8821c8775dee875d3070d79f

Comment by Githook User [ 02/May/18 ]

Author:

{'email': 'schwerin@mongodb.com', 'name': 'Andy Schwerin', 'username': 'amschwerin'}

Message: SERVER-34794 Enterprise part of moving service context initialization into initializers
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/b7248a3d4fac683f515a1041c696e1deb1742e8f

Generated at Thu Feb 08 04:37:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.