diff options
Diffstat (limited to 'src/mongo/s/query/cluster_cursor_cleanup_job.cpp')
-rw-r--r-- | src/mongo/s/query/cluster_cursor_cleanup_job.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/s/query/cluster_cursor_cleanup_job.cpp b/src/mongo/s/query/cluster_cursor_cleanup_job.cpp index 068d06ac98a..73de6b071f6 100644 --- a/src/mongo/s/query/cluster_cursor_cleanup_job.cpp +++ b/src/mongo/s/query/cluster_cursor_cleanup_job.cpp @@ -43,8 +43,7 @@ namespace { // Period of time after which mortal cursors are killed for inactivity. Configurable with server // parameter "cursorTimeoutMillis". -std::atomic<long long> cursorTimeoutMillis( // NOLINT - durationCount<Milliseconds>(Minutes(10))); +AtomicInt64 cursorTimeoutMillis(durationCount<Milliseconds>(Minutes(10))); ExportedServerParameter<long long, ServerParameterType::kStartupAndRuntime> cursorTimeoutMillisConfig(ServerParameterSet::getGlobal(), @@ -71,7 +70,7 @@ void ClusterCursorCleanupJob::run() { manager->killMortalCursorsInactiveSince(Date_t::now() - Milliseconds(cursorTimeoutMillis.load())); manager->incrementCursorsTimedOut(manager->reapZombieCursors()); - sleepsecs(clientCursorMonitorFrequencySecs); + sleepsecs(clientCursorMonitorFrequencySecs.load()); } } |