[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: |
|
||||
| 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: |
| Comment by Githook User [ 02/May/18 ] |
|
Author: {'email': 'schwerin@mongodb.com', 'name': 'Andy Schwerin', 'username': 'amschwerin'}Message: |