]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/Finisher: allow finisher to be restarted
authorSage Weil <sage@inktank.com>
Tue, 3 Dec 2013 20:11:27 +0000 (12:11 -0800)
committerSage Weil <sage@inktank.com>
Tue, 3 Dec 2013 20:27:14 +0000 (12:27 -0800)
Allow a start() after stop() by clearing the stop flag on a successful
stop.

Signed-off-by: Sage Weil <sage@inktank.com>
src/common/Finisher.cc

index a1462a184d908acdfb1ab41c222b08e80afff556..0cbfc44926f3c139679e2d264b2b33e4514310ea 100644 (file)
@@ -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;
 }