diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2022-06-16 22:07:57 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-06-17 00:28:51 +0000 |
commit | 912818162a086bd85e578913d90a0c91cd6bfb11 (patch) | |
tree | 0dd997046de951ce579eb5753ea4a0c416c58090 /src/mongo/embedded | |
parent | 43cf2cd5f8ac1144e24323ef183ee21a024a9de9 (diff) | |
download | mongo-912818162a086bd85e578913d90a0c91cd6bfb11.tar.gz |
SERVER-67218 remove SSM::onCleanupHook by changing ServiceEntryPointImpl SSMList data structure
Diffstat (limited to 'src/mongo/embedded')
-rw-r--r-- | src/mongo/embedded/service_entry_point_embedded.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<transport::ServiceExecutorContext>(); + seCtx->setThreadingModel(transport::ServiceExecutor::ThreadingModel::kDedicated); transport::ServiceExecutorContext::set(client, std::move(seCtx)); } void onDestroyClient(Client*) {} |