[SERVER-35445] Make global "grid" object a decoration on ServiceContext Created: 06/Jun/18  Updated: 29/Oct/23  Resolved: 17/Jul/18

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.1.1

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:
Related
is related to SERVER-18084 'Grid' should be dissolved into one o... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

Making the grid object a decoration on the ServiceContext ties its lifetime to the ServiceContext, which in turn makes it easier to create and destroy ServiceContexts in unit tests. This will allow a future simplification of unit test code, and is also more consistent with modern MongoDB coding practices.



 Comments   
Comment by Andy Schwerin [ 17/Jul/18 ]

Resolved as a side-effect of SERVER-34798.

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