]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Objecter::shutdown(): call SafeTimer::Join()
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 19 Oct 2010 22:55:21 +0000 (15:55 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 19 Oct 2010 22:55:21 +0000 (15:55 -0700)
Objecter::shutdown() needs to call Timer::join() to ensure that
concurrently exectuting events in other threads get flushed before the
Objecter and its Timer are destroyed.

Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
src/osdc/Objecter.cc

index 4bb8fede1e0b3e768a4612a43950245b3141279d..7e47e7201bc6c04c9da528fe1498039d249e4305 100644 (file)
@@ -58,6 +58,7 @@ void Objecter::shutdown()
 {
   assert(client_lock.is_locked());  // otherwise event cancellation is unsafe
   timer.cancel_all();
+  timer.join();
 }