Remove featureCompatibilityVersion parameter for IndexDescriptor::getDefaultIndexVersion

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • None
    • Query
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The function IndexDescriptor::getDefaultIndexVersion accepts a featureCompatibilityVersion parameter, but does nothing with it. In an attempt to reduce direct accesses to the fCV version parameter in SERVER-30745, this function should remove the argument and return the default.

      IndexVersion IndexDescriptor::getDefaultIndexVersion(
          ServerGlobalParams::FeatureCompatibility::Version featureCompatibilityVersion) {
          return IndexVersion::kV2;
      }
      

      As a result, the calls to serverGlobalParams.featureCompatibility.getVersion() in database_impl.cpp, index_key_validate.cpp, and drop_indexes.cpp should be removed.

            Assignee:
            Backlog - Query Team (Inactive)
            Reporter:
            Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: