summaryrefslogtreecommitdiff
path: root/src/mongo/util/periodic_runner_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/periodic_runner_impl.cpp')
-rw-r--r--src/mongo/util/periodic_runner_impl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/util/periodic_runner_impl.cpp b/src/mongo/util/periodic_runner_impl.cpp
index fc21a7184a4..98a517cf7d9 100644
--- a/src/mongo/util/periodic_runner_impl.cpp
+++ b/src/mongo/util/periodic_runner_impl.cpp
@@ -57,7 +57,7 @@ PeriodicRunnerImpl::PeriodicJobImpl::PeriodicJobImpl(PeriodicJob job,
: _job(std::move(job)), _clockSource(source), _serviceContext(svc) {}
void PeriodicRunnerImpl::PeriodicJobImpl::_run() {
- auto[startPromise, startFuture] = makePromiseFuture<void>();
+ auto [startPromise, startFuture] = makePromiseFuture<void>();
{
stdx::lock_guard lk(_mutex);
@@ -65,7 +65,7 @@ void PeriodicRunnerImpl::PeriodicJobImpl::_run() {
}
- _thread = stdx::thread([ this, startPromise = std::move(startPromise) ]() mutable {
+ _thread = stdx::thread([this, startPromise = std::move(startPromise)]() mutable {
auto guard = makeGuard([this] { _stopPromise.emplaceValue(); });
Client::initThread(_job.name, _serviceContext, nullptr);