Skip to content

Commit

Permalink
librbd: TaskFinisher should finish all queued tasks
Browse files Browse the repository at this point in the history
The destructor wasn't waiting for all Finisher tasks
to complete before stopping the thread.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 8e20240)
  • Loading branch information
Jason Dillaman committed Jul 17, 2015
1 parent 43cd3ac commit fe013e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librbd/TaskFinisher.h
Expand Up @@ -35,6 +35,7 @@ class TaskFinisher {
delete m_safe_timer;
}

m_finisher->wait_for_empty();
m_finisher->stop();
delete m_finisher;
}
Expand Down

0 comments on commit fe013e0

Please sign in to comment.