summaryrefslogtreecommitdiff
path: root/src/mongo/db/repair.cpp
diff options
context:
space:
mode:
authorKevin Pulo <kevin.pulo@mongodb.com>2020-09-17 19:30:00 +1000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-17 13:36:47 +0000
commitb2bc7afd7e063b5baf8a8c05e2589f840f0d9050 (patch)
tree037cd56056aae161b9bb868551e9330773318ca0 /src/mongo/db/repair.cpp
parent2c446f3f587f406c23cdfca87f227ee5cd466fa8 (diff)
downloadmongo-b2bc7afd7e063b5baf8a8c05e2589f840f0d9050.tar.gz
SERVER-50998 Remove getClusterTimeForReplicaSet()
Diffstat (limited to 'src/mongo/db/repair.cpp')
-rw-r--r--src/mongo/db/repair.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repair.cpp b/src/mongo/db/repair.cpp
index 770b3866dc1..0b3dfca8ebb 100644
--- a/src/mongo/db/repair.cpp
+++ b/src/mongo/db/repair.cpp
@@ -170,13 +170,13 @@ Status repairDatabase(OperationContext* opCtx, StorageEngine* engine, const std:
// Set the minimum snapshot for all Collections in this db. This ensures that readers
// using majority readConcern level can only use the collections after their repaired
// versions are in the committed view.
- auto clusterTime = VectorClock::getClusterTimeForReplicaSet(opCtx).asTimestamp();
+ const auto currentTime = VectorClock::get(opCtx)->getTime();
for (auto collIt = db->begin(opCtx); collIt != db->end(opCtx); ++collIt) {
auto collection =
collIt.getWritableCollection(opCtx, CollectionCatalog::LifetimeMode::kInplace);
if (collection) {
- collection->setMinimumVisibleSnapshot(clusterTime);
+ collection->setMinimumVisibleSnapshot(currentTime.clusterTime().asTimestamp());
}
}