Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-34751

Move StorageEngine ownership to ServiceContext from subclasses

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.0.0-rc0
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Fully Compatible

      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.

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: