From c90f38192378c8526354465991830524eda90c1f Mon Sep 17 00:00:00 2001 From: Billy Donahue Date: Fri, 3 Sep 2021 19:11:40 +0000 Subject: SERVER-59782 migrate makeGuard calls to ScopeGuard --- src/mongo/db/default_baton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/db/default_baton.cpp') diff --git a/src/mongo/db/default_baton.cpp b/src/mongo/db/default_baton.cpp index b361cf38346..3f7e73fa59d 100644 --- a/src/mongo/db/default_baton.cpp +++ b/src/mongo/db/default_baton.cpp @@ -107,7 +107,7 @@ Waitable::TimeoutState DefaultBaton::run_until(ClockSource* clkSource, stdx::unique_lock lk(_mutex); // We'll fulfill promises and run jobs on the way out, ensuring we don't hold any locks - const auto guard = makeGuard([&] { + const ScopeGuard guard([&] { // While we have scheduled work, keep running jobs while (_scheduled.size()) { auto toRun = std::exchange(_scheduled, {}); -- cgit v1.2.1