OpRequest: don't maintain history if the OSD is shutting down

Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2013-04-18 19:24:03 -07:00
parent 1493e7dbfb
commit 78c9db88cd

View File

@ -29,7 +29,8 @@ void OpHistory::on_shutdown()
void OpHistory::insert(utime_t now, OpRequestRef op)
{
assert(!shutdown);
if (shutdown)
return;
duration.insert(make_pair(op->get_duration(), op));
arrived.insert(make_pair(op->get_arrived(), op));
cleanup(now);