Fix incorrect FCV initialisation check to allow compound hashed index

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 4.4.0-rc0, 4.7.0
    • Affects Version/s: 4.3.4
    • Component/s: None
    • Fully Compatible
    • ALL
    • v4.4
    • Query 2020-03-23
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The current implementation allows creating compound hashed index if featureCompatibility.isVersionInitialized() evaluates to false. This might cause issues if FeatureCompatibilityVersion object ever gets uninitialized.
      We need to change this code to

      const auto isFeatureDisabled =
                      (!featureCompatibility.isVersionInitialized() || featureCompatibility.getVersion() <   ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo44);        
      

            Assignee:
            Arun Banala
            Reporter:
            Arun Banala
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: