summaryrefslogtreecommitdiff
path: root/src/mongo/db/keys_collection_manager.cpp
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2017-04-26 14:39:55 -0400
committerRandolph Tan <randolph@10gen.com>2017-05-03 10:47:37 -0400
commit1a6c4ecddfa4bb7a7275dc4b1bf5b79222aa4b72 (patch)
tree683414110da9fef4ba13373ffa9a49c087985369 /src/mongo/db/keys_collection_manager.cpp
parent1c44e48a50fc2cddbcb2d837a000187a1d84e34e (diff)
downloadmongo-1a6c4ecddfa4bb7a7275dc4b1bf5b79222aa4b72.tar.gz
SERVER-28562 Move LogicalTime HMAC computation outside collection lock
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 f65e1163e8f..61cd43f73f1 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().getTime();
+ auto currentTime = LogicalClock::get(service)->getClusterTime();
nextWakeup =
howMuchSleepNeedFor(currentTime, latestKey.getExpiresAt(), refreshInterval);