From 912818162a086bd85e578913d90a0c91cd6bfb11 Mon Sep 17 00:00:00 2001 From: Billy Donahue Date: Thu, 16 Jun 2022 22:07:57 +0000 Subject: SERVER-67218 remove SSM::onCleanupHook by changing ServiceEntryPointImpl SSMList data structure --- src/mongo/embedded/service_entry_point_embedded.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/embedded') diff --git a/src/mongo/embedded/service_entry_point_embedded.cpp b/src/mongo/embedded/service_entry_point_embedded.cpp index f2485cbd8dc..48160f99630 100644 --- a/src/mongo/embedded/service_entry_point_embedded.cpp +++ b/src/mongo/embedded/service_entry_point_embedded.cpp @@ -53,8 +53,8 @@ namespace { */ class EmbeddedClientObserver final : public ServiceContext::ClientObserver { void onCreateClient(Client* client) { - auto seCtx = transport::ServiceExecutorContext{}; - seCtx.setThreadingModel(transport::ServiceExecutor::ThreadingModel::kDedicated); + auto seCtx = std::make_unique(); + seCtx->setThreadingModel(transport::ServiceExecutor::ThreadingModel::kDedicated); transport::ServiceExecutorContext::set(client, std::move(seCtx)); } void onDestroyClient(Client*) {} -- cgit v1.2.1