diff options
Diffstat (limited to 'src/mongo/db/ttl.cpp')
-rw-r--r-- | src/mongo/db/ttl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/ttl.cpp b/src/mongo/db/ttl.cpp index c2ee5ba1561..ab842aa5782 100644 --- a/src/mongo/db/ttl.cpp +++ b/src/mongo/db/ttl.cpp @@ -87,11 +87,11 @@ public: AuthorizationSession::get(cc())->grantInternalAuthorization(); while (!inShutdown()) { - sleepsecs(ttlMonitorSleepSecs); + sleepsecs(ttlMonitorSleepSecs.load()); LOG(3) << "thread awake"; - if (!ttlMonitorEnabled) { + if (!ttlMonitorEnabled.load()) { LOG(1) << "disabled"; continue; } |