diff options
author | Kevin Pulo <kevin.pulo@mongodb.com> | 2020-09-17 19:30:00 +1000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-17 13:36:47 +0000 |
commit | b2bc7afd7e063b5baf8a8c05e2589f840f0d9050 (patch) | |
tree | 037cd56056aae161b9bb868551e9330773318ca0 /src/mongo/db/repair.cpp | |
parent | 2c446f3f587f406c23cdfca87f227ee5cd466fa8 (diff) | |
download | mongo-b2bc7afd7e063b5baf8a8c05e2589f840f0d9050.tar.gz |
SERVER-50998 Remove getClusterTimeForReplicaSet()
Diffstat (limited to 'src/mongo/db/repair.cpp')
-rw-r--r-- | src/mongo/db/repair.cpp | 4 |
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()); } } |