diff options
Diffstat (limited to 'src/mongo/db/commands/drop_indexes.cpp')
-rw-r--r-- | src/mongo/db/commands/drop_indexes.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mongo/db/commands/drop_indexes.cpp b/src/mongo/db/commands/drop_indexes.cpp index 11d199c99ec..f6ebf5ec180 100644 --- a/src/mongo/db/commands/drop_indexes.cpp +++ b/src/mongo/db/commands/drop_indexes.cpp @@ -142,10 +142,7 @@ public: // This is necessary to set up CurOp and update the Top stats. OldClientContext ctx(opCtx, toReIndexNss.ns()); - const auto featureCompatibilityVersion = - serverGlobalParams.featureCompatibility.getVersion(); - const auto defaultIndexVersion = - IndexDescriptor::getDefaultIndexVersion(featureCompatibilityVersion); + const auto defaultIndexVersion = IndexDescriptor::getDefaultIndexVersion(); vector<BSONObj> all; { |