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

Add a featureCompatibilityVersion document parser

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.7.3
    • None
    • Storage
    • None
    • Fully Compatible
    • Storage NYC 2018-03-12

    Description

      FeatureCompatibilityVersion::toString and FeatureCompatibilityVersion::parse should be moved to this new parser file.

      Along with:

      • kParameterName, kVersionField and kTargetVersionField from FeatureCompatibilityVersion.
      • kVersion36, kVersion40, kVersionDowngradingTo36, kVersionUpgradingTo40 and kVersionUnset from FeatureCompatibilityVersionCommandParser.

      FeatureCompatibilityVersion:: kCommandName should move into feature_compatiiblity_version_command_parser.h/cpp where it logically belongs.

      --------
      Reason for rearrangement: to break up dependencies.
      feature_compatibility_version.cpp is a pretty high level file, and users of the constants and toString and parse functions can be lower level, sometime necessitating ugly file linking or making it impossible to link with. See SERVER-31968.

      Attachments

        Activity

          People

            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: