]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: do not leak messages on shutdown
authorSage Weil <sage@redhat.com>
Tue, 15 Sep 2015 16:28:35 +0000 (12:28 -0400)
committerSage Weil <sage@redhat.com>
Tue, 15 Sep 2015 16:53:53 +0000 (12:53 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/Monitor.cc

index d886272534a69742216c5a46163efded81aeadad..19f6580a7c3f2475c67abd20db175faf6b9263bb 100644 (file)
@@ -3410,6 +3410,7 @@ void Monitor::waitlist_or_zap_client(MonOpRequestRef op)
 void Monitor::_ms_dispatch(Message *m)
 {
   if (is_shutdown()) {
+    m->put();
     return;
   }