diff options
Diffstat (limited to 'src/mongo/db/commands/drop_indexes.cpp')
-rw-r--r-- | src/mongo/db/commands/drop_indexes.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mongo/db/commands/drop_indexes.cpp b/src/mongo/db/commands/drop_indexes.cpp index 1faedbb761c..cc234d24d80 100644 --- a/src/mongo/db/commands/drop_indexes.cpp +++ b/src/mongo/db/commands/drop_indexes.cpp @@ -218,7 +218,6 @@ public: // snapshot so are unable to be used. auto replCoord = repl::ReplicationCoordinator::get(opCtx); auto snapshotName = replCoord->reserveSnapshotName(opCtx); - replCoord->forceSnapshotCreation(); // Ensures a newer snapshot gets created even if idle. collection->setMinimumVisibleSnapshot(snapshotName); result.append("nIndexes", static_cast<int>(indexInfoObjs.getValue().size())); |