]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msgr: always start reaper
authorSage Weil <sage@newdream.net>
Fri, 21 Jan 2011 18:08:26 +0000 (10:08 -0800)
committerSage Weil <sage@newdream.net>
Fri, 21 Jan 2011 18:08:26 +0000 (10:08 -0800)
If we didn't explicitly bind (i.e. are a client), then we don't start
the accepter.  That's fine. But the reaper thread start was also
conditional, when it shouldn't be; otherwise the client can't clean up
old Pipes (and their sockets).

Fixes: #732
Signed-off-by: Sage Weil <sage@newdream.net>
src/msg/SimpleMessenger.cc

index 4601e92d0b5d4e4ab83eb95e94cbcdf58fe73d1f..db742404251adb2d654693421034e6946f0c1ded 100644 (file)
@@ -2410,12 +2410,11 @@ int SimpleMessenger::start(bool nodaemon)
   }
 
   // go!
-  if (did_bind) {
+  if (did_bind)
     accepter.start();
 
-    reaper_started = true;
-    reaper_thread.create();
-  }
+  reaper_started = true;
+  reaper_thread.create();
   return 0;
 }