From: Sage Weil Date: Tue, 3 Dec 2013 20:11:27 +0000 (-0800) Subject: common/Finisher: allow finisher to be restarted X-Git-Tag: v0.74~35^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cd6be292b1563469c4fd5d45c2ca8a7376457dcb;p=ceph.git common/Finisher: allow finisher to be restarted Allow a start() after stop() by clearing the stop flag on a successful stop. Signed-off-by: Sage Weil --- diff --git a/src/common/Finisher.cc b/src/common/Finisher.cc index a1462a184d9..0cbfc44926f 100644 --- a/src/common/Finisher.cc +++ b/src/common/Finisher.cc @@ -80,6 +80,7 @@ void *Finisher::finisher_thread_entry() finisher_empty_cond.Signal(); ldout(cct, 10) << "finisher_thread stop" << dendl; + finisher_stop = false; finisher_lock.Unlock(); return 0; }