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

Remove repeated string constants related to featureCompatibilityVersion

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.5.13
    • None
    • Internal Code
    • None
    • Fully Compatible
    • Query 2017-09-11

    Description

      The dochub link "http://dochub.mongodb.org/core/3.6-feature-compatibility." is repeated throughout the code.

      The help message for setFeatureCompatibilityVersion and cluster setFeatureCompatibilityVersion also contain "3.4" and "3.6" as string constants.

      The error message for setting featureCompatibilityVersion also uses string constants for "3.4" and "3.6".

      It would be better if all of these string constants were variables so that they could be changed in one place and we would not forget to update any instance when we branch.

      Attachments

        Activity

          People

            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: