diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 9ff8ef8f2b4..ae6d0dc4fd1 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -460,9 +460,7 @@ void OSDMonitor::on_shutdown() // discard failure info, waiters list ls; take_all_failures(ls); - while (!ls.empty()) { - ls.pop_front(); - } + ls.clear(); } void OSDMonitor::update_logger()