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

Only register wiredTiger factory once

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-rc6
    • Component/s: Storage
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change

      Description

      The wiredTiger storage engine is registered twice with the global environment. This is to accommodate passing both "wiredtiger" and "wiredTiger" as engine name at the mongod command line.

      Under SERVER-16266 we added "wiredTiger" to make the naming consistent and left "wiredtiger" as we had released an RC. I would argue however that we should remove "wiredtiger" now as there will be a larger impact if removed in the future.

      Outside of simplifying the command line, removal of "wiredtiger" comes into play when iterating over the list of storage engine factories via the StorageFactoriesIterator. The Factory interface provides engine identification via the getCanonicalName() method. This method will return the same name, "wiredTiger", for both registered WiredTiger instances. De-duping is then required if looking for a list of registered storage engines.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ramon.fernandez Ramon Fernandez Marina
              Reporter:
              james.wahlin James Wahlin
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: