diff options
author | Kevin Pulo <kevin.pulo@mongodb.com> | 2020-09-15 11:44:54 +1000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-17 04:31:08 +0000 |
commit | 686ee776666ebcfa15f3744142f74b6f1d59e617 (patch) | |
tree | 4b03cae9999243359291acc931eaae8daa2b5869 /src/mongo/db/keys_collection_manager.cpp | |
parent | 8213debcbf8b9495c0e336d98a8bf75df7f088c5 (diff) | |
download | mongo-686ee776666ebcfa15f3744142f74b6f1d59e617.tar.gz |
SERVER-48433 Remove LogicalClock facade
Diffstat (limited to 'src/mongo/db/keys_collection_manager.cpp')
-rw-r--r-- | src/mongo/db/keys_collection_manager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/keys_collection_manager.cpp b/src/mongo/db/keys_collection_manager.cpp index 75bade8e329..86a95a1a864 100644 --- a/src/mongo/db/keys_collection_manager.cpp +++ b/src/mongo/db/keys_collection_manager.cpp @@ -37,10 +37,10 @@ #include "mongo/db/key_generator.h" #include "mongo/db/keys_collection_cache.h" #include "mongo/db/keys_collection_client.h" -#include "mongo/db/logical_clock.h" #include "mongo/db/logical_time.h" #include "mongo/db/operation_context.h" #include "mongo/db/service_context.h" +#include "mongo/db/vector_clock.h" #include "mongo/logv2/log.h" #include "mongo/util/concurrency/idle_thread_block.h" #include "mongo/util/fail_point.h" @@ -252,12 +252,12 @@ void KeysCollectionManager::PeriodicRunner::_doPeriodicRefresh(ServiceContext* s if (latestKeyStatusWith.getStatus().isOK()) { errorCount = 0; const auto& latestKey = latestKeyStatusWith.getValue(); - auto currentTime = LogicalClock::get(service)->getClusterTime(); + const auto currentTime = VectorClock::get(service)->getTime(); _hasSeenKeys.store(true); nextWakeup = keys_collection_manager_util::howMuchSleepNeedFor( - currentTime, latestKey.getExpiresAt(), refreshInterval); + currentTime.clusterTime(), latestKey.getExpiresAt(), refreshInterval); } else { errorCount += 1; nextWakeup = Milliseconds(kRefreshIntervalIfErrored.count() * errorCount); |