[SERVER-34751] Move StorageEngine ownership to ServiceContext from subclasses Created: 30/Apr/18  Updated: 29/Oct/23  Resolved: 03/May/18

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

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

Backwards Compatibility: Fully Compatible
Participants:

 Description   

The StorageEngine pointer is currently held and owned by ServiceContext's subclasses, ServiceContextMongoD and ServiceContextEmbedded. These subclasses are superfluous, and should be eliminated. The first step is to move ownership of the StorageEngine object into the ServiceContext class.

Eventually, the StorageEngine should probably be a decoration, as it does not exist in mongos, but that's less urgent.



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

Author:

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

Message: SERVER-34751 Replace getGlobalStorageEngine cals with getStorageEngine.
Branch: master
https://github.com/mongodb/mongo/commit/b1cc960cb5de30861b00bf72057c5dfa0733c1fb

Comment by Githook User [ 02/May/18 ]

Author:

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

Message: SERVER-34751 Move StorageEngine ownership to ServiceContext from subclasses
Branch: master
https://github.com/mongodb/mongo/commit/3e25e21a342566799516f1a23b7fcbeb49fd5d8d

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