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

Remove featureCompatibilityVersion parameter for IndexDescriptor::getDefaultIndexVersion

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

      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-server-query Backlog - Query Team (Inactive)
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: