From 0ab34aa7b9c3c48ea6cf17888620fca455284d35 Mon Sep 17 00:00:00 2001 From: Andy Schwerin Date: Sat, 16 Apr 2016 12:24:16 -0400 Subject: SERVER-23779 Replace direct instantiation of OperationContextImpl with cc().makeOperationContext(). Also, make OperationContextImpl's constructor private so that it can only be constructed via a Client. --- src/mongo/db/service_context_d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/db/service_context_d.cpp') diff --git a/src/mongo/db/service_context_d.cpp b/src/mongo/db/service_context_d.cpp index ea05ccacaf6..ecb449e7adb 100644 --- a/src/mongo/db/service_context_d.cpp +++ b/src/mongo/db/service_context_d.cpp @@ -320,7 +320,7 @@ void ServiceContextMongoD::registerKillOpListener(KillOpListenerInterface* liste std::unique_ptr ServiceContextMongoD::_newOpCtx(Client* client) { invariant(&cc() == client); - return stdx::make_unique(); + return std::unique_ptr(new OperationContextImpl()); } void ServiceContextMongoD::setOpObserver(std::unique_ptr opObserver) { -- cgit v1.2.1