summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/drop_indexes.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2018-01-16 22:10:29 -0500
committerBenety Goh <benety@mongodb.com>2018-01-17 21:17:26 -0500
commit7713d5531c663603d17fff1267d013e0b6867e5b (patch)
tree67dcd6fc3311d967894d9031d1bc646ed1216873 /src/mongo/db/commands/drop_indexes.cpp
parent25b7af8b7367de11f0d4d864bd6a51983227c494 (diff)
downloadmongo-7713d5531c663603d17fff1267d013e0b6867e5b.tar.gz
SERVER-32284 rename ReplicationCoordinator::reserveSnapshotName() to getMinimumVisibleSnapshot()
Diffstat (limited to 'src/mongo/db/commands/drop_indexes.cpp')
-rw-r--r--src/mongo/db/commands/drop_indexes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/drop_indexes.cpp b/src/mongo/db/commands/drop_indexes.cpp
index 14a7a5d91a2..d49ab60c73a 100644
--- a/src/mongo/db/commands/drop_indexes.cpp
+++ b/src/mongo/db/commands/drop_indexes.cpp
@@ -218,7 +218,7 @@ public:
// tries to read in the intermediate state where all indexes are newer than the current
// snapshot so are unable to be used.
auto replCoord = repl::ReplicationCoordinator::get(opCtx);
- auto snapshotName = replCoord->reserveSnapshotName(opCtx);
+ auto snapshotName = replCoord->getMinimumVisibleSnapshot(opCtx);
collection->setMinimumVisibleSnapshot(snapshotName);
result.append("nIndexes", static_cast<int>(indexInfoObjs.getValue().size()));