Merge pull request #9718 from songbaisen/a8

mon: clear list in better way

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Yuri Weinstein 2016-08-05 08:09:58 -07:00 committed by GitHub
commit 4075f98da1

View File

@ -460,9 +460,7 @@ void OSDMonitor::on_shutdown()
// discard failure info, waiters
list<MonOpRequestRef> ls;
take_all_failures(ls);
while (!ls.empty()) {
ls.pop_front();
}
ls.clear();
}
void OSDMonitor::update_logger()