From: Sage Weil Date: Fri, 21 Jan 2011 18:08:26 +0000 (-0800) Subject: msgr: always start reaper X-Git-Tag: v0.24.2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aaed6eb3d066144c1e661cc004767afc356f6b37;p=ceph.git msgr: always start reaper 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 --- diff --git a/src/msg/SimpleMessenger.cc b/src/msg/SimpleMessenger.cc index 4601e92d0b5d..db742404251a 100644 --- a/src/msg/SimpleMessenger.cc +++ b/src/msg/SimpleMessenger.cc @@ -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; }