Skip to content

Commit

Permalink
fix(purger): Fix the purger loop (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
jecaro authored Oct 16, 2024
1 parent bfd97aa commit adb9f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud/purge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void CloudFileSystemImpl::Purger() {

while (true) {
std::unique_lock<std::mutex> 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;
}
Expand Down

0 comments on commit adb9f1a

Please sign in to comment.