]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
SimpleMessenger.cc: Fixes a dispatch_throttler leak in queue_received
authorSamuel Just <samuelj@hq.newdream.net>
Wed, 1 Dec 2010 00:52:40 +0000 (16:52 -0800)
committerSage Weil <sage@newdream.net>
Mon, 3 Jan 2011 18:14:52 +0000 (10:14 -0800)
when the pipe has been halted.

Signed-off-by: Samuel Just <samuelj@hq.newdream.net>
src/msg/SimpleMessenger.cc

index bc40023daf76c85a0787ea69e5142fc0b6cc7c77..fd18a5461611efe9091269820286738f234f2e73 100644 (file)
@@ -568,8 +568,10 @@ void SimpleMessenger::Pipe::queue_received(Message *m, int priority)
   // don't want to put local-delivery signals
   // this magic number should be larger than
   // the size of the D_CONNECT et al enum
-  if (m>(void *)5)
+  if (m>(void *)5) {
+    messenger->dispatch_throttle_release(m->get_dispatch_throttle_size());
     m->put();
+  }
 }