summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/drop_indexes.cpp
diff options
context:
space:
mode:
authorSulabh Mahajan <sulabh.mahajan@mongodb.com>2018-04-24 11:31:54 +1000
committerSulabh Mahajan <sulabh.mahajan@mongodb.com>2018-04-24 11:31:54 +1000
commit7f2f527bf147d61b48696cd4438acb1a8a920c8a (patch)
tree8ec875a8c50e9cd5b36fbb0d4420071a0fd8e46c /src/mongo/db/commands/drop_indexes.cpp
parent93fd36a003686fe39935fa9c9d9b1b354a14eceb (diff)
downloadmongo-r3.7.6.tar.gz
SERVER-34263 Use WT specific data format version for new unique idxr3.7.6
Diffstat (limited to 'src/mongo/db/commands/drop_indexes.cpp')
-rw-r--r--src/mongo/db/commands/drop_indexes.cpp5
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;
{