summaryrefslogtreecommitdiff
path: root/src/mongo/transport/service_executor_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/transport/service_executor_utils.cpp')
-rw-r--r--src/mongo/transport/service_executor_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/transport/service_executor_utils.cpp b/src/mongo/transport/service_executor_utils.cpp
index 13cba5d994d..f4382074734 100644
--- a/src/mongo/transport/service_executor_utils.cpp
+++ b/src/mongo/transport/service_executor_utils.cpp
@@ -75,7 +75,7 @@ Status launchServiceWorkerThread(unique_function<void()> task) noexcept {
#else
pthread_attr_t attrs;
pthread_attr_init(&attrs);
- auto attrsGuard = makeGuard([&attrs] { pthread_attr_destroy(&attrs); });
+ ScopeGuard attrsGuard([&attrs] { pthread_attr_destroy(&attrs); });
pthread_attr_setdetachstate(&attrs, PTHREAD_CREATE_DETACHED);
static const rlim_t kStackSize =