diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2016-05-09 10:31:40 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2016-05-17 11:11:57 -0400 |
commit | 73a042328a539b51b3bf35efc16ec3245381dc40 (patch) | |
tree | 650b8de13315f5bdb94626e51c445fed7f41152e /src/mongo/s/query/cluster_cursor_cleanup_job.cpp | |
parent | 11e82fe19c81bd1a5d350a219c3a000e959b6dd6 (diff) | |
download | mongo-73a042328a539b51b3bf35efc16ec3245381dc40.tar.gz |
SERVER-24104 Replace direct uses of stdx::chrono::durations with MongoDB duration using decls.
This is a preliminary step for switching from stdx::chrono::duration to mongo::Duration.
Diffstat (limited to 'src/mongo/s/query/cluster_cursor_cleanup_job.cpp')
-rw-r--r-- | src/mongo/s/query/cluster_cursor_cleanup_job.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/s/query/cluster_cursor_cleanup_job.cpp b/src/mongo/s/query/cluster_cursor_cleanup_job.cpp index 714076365c9..cdc7f2f0972 100644 --- a/src/mongo/s/query/cluster_cursor_cleanup_job.cpp +++ b/src/mongo/s/query/cluster_cursor_cleanup_job.cpp @@ -44,7 +44,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<stdx::chrono::milliseconds>(stdx::chrono::minutes(10))); + durationCount<Milliseconds>(Minutes(10))); ExportedServerParameter<long long, ServerParameterType::kStartupAndRuntime> cursorTimeoutMillisConfig(ServerParameterSet::getGlobal(), @@ -65,10 +65,9 @@ void ClusterCursorCleanupJob::run() { invariant(manager); while (!inShutdown()) { - manager->killMortalCursorsInactiveSince(Date_t::now() - - stdx::chrono::milliseconds(cursorTimeoutMillis)); + manager->killMortalCursorsInactiveSince(Date_t::now() - Milliseconds(cursorTimeoutMillis)); manager->reapZombieCursors(); - sleepFor(stdx::chrono::seconds(4)); + sleepFor(Seconds(4)); } } |