From f587bcd3e55f87c696fca2912dffd454a166ae60 Mon Sep 17 00:00:00 2001 From: jecaro Date: Thu, 19 Sep 2024 13:36:51 +0200 Subject: [PATCH] fix(purger): Fix the purger loop --- cloud/purge.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/purge.cc b/cloud/purge.cc index 6cd4f5fc5af..0e9e3e2af90 100644 --- a/cloud/purge.cc +++ b/cloud/purge.cc @@ -34,7 +34,7 @@ void CloudFileSystemImpl::Purger() { while (true) { std::unique_lock lk(purger_lock_); - purger_cv_.wait_for(lk, period, [&]() { return purger_is_running_; }); + purger_cv_.wait_for(lk, period, [&]() { return !purger_is_running_; }); if (!purger_is_running_) { break; }