summaryrefslogtreecommitdiff
path: root/src/mongo/db/keys_collection_manager.cpp
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2017-05-03 13:14:53 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2017-05-03 13:14:53 -0400
commitb7c013aa097b2d999ad3f942cdfce130558ef40f (patch)
tree04e39ddadd003bff628faeea9b7bf0fb812465e9 /src/mongo/db/keys_collection_manager.cpp
parent606b3930d1ca73f0184f4b29bb52917cc15e94cf (diff)
downloadmongo-b7c013aa097b2d999ad3f942cdfce130558ef40f.tar.gz
Revert "SERVER-28562 Move LogicalTime HMAC computation outside collection lock"
This reverts commit 1a6c4ecddfa4bb7a7275dc4b1bf5b79222aa4b72.
Diffstat (limited to 'src/mongo/db/keys_collection_manager.cpp')
-rw-r--r--src/mongo/db/keys_collection_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/keys_collection_manager.cpp b/src/mongo/db/keys_collection_manager.cpp
index 61cd43f73f1..f65e1163e8f 100644
--- a/src/mongo/db/keys_collection_manager.cpp
+++ b/src/mongo/db/keys_collection_manager.cpp
@@ -243,7 +243,7 @@ void KeysCollectionManager::PeriodicRunner::_doPeriodicRefresh(ServiceContext* s
auto latestKeyStatusWith = (*doRefresh)(opCtx.get());
if (latestKeyStatusWith.getStatus().isOK()) {
const auto& latestKey = latestKeyStatusWith.getValue();
- auto currentTime = LogicalClock::get(service)->getClusterTime();
+ auto currentTime = LogicalClock::get(service)->getClusterTime().getTime();
nextWakeup =
howMuchSleepNeedFor(currentTime, latestKey.getExpiresAt(), refreshInterval);