diff options
Diffstat (limited to 'src/mongo/db/service_context.cpp')
-rw-r--r-- | src/mongo/db/service_context.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/db/service_context.cpp b/src/mongo/db/service_context.cpp index c7ed9d53083..d86176e0c03 100644 --- a/src/mongo/db/service_context.cpp +++ b/src/mongo/db/service_context.cpp @@ -33,6 +33,8 @@ #include "mongo/db/service_context.h" +#include <memory> + #include "mongo/base/init.h" #include "mongo/bson/bsonobj.h" #include "mongo/db/client.h" @@ -42,7 +44,6 @@ #include "mongo/db/operation_context.h" #include "mongo/db/storage/recovery_unit_noop.h" #include "mongo/stdx/list.h" -#include "mongo/stdx/memory.h" #include "mongo/transport/service_entry_point.h" #include "mongo/transport/session.h" #include "mongo/transport/transport_layer.h" @@ -90,9 +91,9 @@ bool supportsDocLocking() { } ServiceContext::ServiceContext() - : _tickSource(stdx::make_unique<SystemTickSource>()), - _fastClockSource(stdx::make_unique<SystemClockSource>()), - _preciseClockSource(stdx::make_unique<SystemClockSource>()) {} + : _tickSource(std::make_unique<SystemTickSource>()), + _fastClockSource(std::make_unique<SystemClockSource>()), + _preciseClockSource(std::make_unique<SystemClockSource>()) {} ServiceContext::~ServiceContext() { stdx::lock_guard<stdx::mutex> lk(_mutex); |