Skip to content

Commit

Permalink
Merge pull request #7417 from dachary/wip-14553-hammer
Browse files Browse the repository at this point in the history
hammer: rbd: TaskFinisher::cancel should remove event from SafeTimer

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
  • Loading branch information
jdurgin committed Jan 30, 2016
2 parents 51cc015 + 46d626d commit 97d4f6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librbd/TaskFinisher.h
Expand Up @@ -45,6 +45,7 @@ class TaskFinisher {
typename TaskContexts::iterator it = m_task_contexts.find(task);
if (it != m_task_contexts.end()) {
delete it->second.first;
m_safe_timer->cancel_event(it->second.second);
m_task_contexts.erase(it);
}
}
Expand Down

0 comments on commit 97d4f6a

Please sign in to comment.