diff options
Diffstat (limited to 'src/mongo/db/default_baton.cpp')
-rw-r--r-- | src/mongo/db/default_baton.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Latch> 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, {}); |