diff options
author | Jason Rassi <rassi@10gen.com> | 2015-08-11 10:55:17 -0400 |
---|---|---|
committer | Jason Rassi <rassi@10gen.com> | 2015-08-11 11:01:00 -0400 |
commit | 8e2990da71c1498d2a979ef47c07c2bfc2fa4f97 (patch) | |
tree | 8dec46fd85e96504dec09315fbe596b92a6e3ca8 /src/mongo/db/service_context_d.cpp | |
parent | ff9624152b6b9d017d65cf5055dc5f3a9907f062 (diff) | |
download | mongo-8e2990da71c1498d2a979ef47c07c2bfc2fa4f97.tar.gz |
SERVER-18774 Add ClockSource interface
Diffstat (limited to 'src/mongo/db/service_context_d.cpp')
-rw-r--r-- | src/mongo/db/service_context_d.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/service_context_d.cpp b/src/mongo/db/service_context_d.cpp index cef92203f59..af17b210db9 100644 --- a/src/mongo/db/service_context_d.cpp +++ b/src/mongo/db/service_context_d.cpp @@ -50,6 +50,7 @@ #include "mongo/util/map_util.h" #include "mongo/util/mongoutils/str.h" #include "mongo/util/scopeguard.h" +#include "mongo/util/system_clock_source.h" #include "mongo/util/system_tick_source.h" namespace mongo { @@ -57,6 +58,7 @@ namespace mongo { MONGO_INITIALIZER(SetGlobalEnvironment)(InitializerContext* context) { setGlobalServiceContext(stdx::make_unique<ServiceContextMongoD>()); getGlobalServiceContext()->setTickSource(stdx::make_unique<SystemTickSource>()); + getGlobalServiceContext()->setClockSource(stdx::make_unique<SystemClockSource>()); return Status::OK(); } |