mirror of
https://github.com/ceph/ceph
synced 2025-02-19 08:57:27 +00:00
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:
parent
1493e7dbfb
commit
78c9db88cd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user