From: Sage Weil Date: Mon, 14 Sep 2015 13:56:57 +0000 (-0400) Subject: mon: fix MonSession leak when waitlisting op X-Git-Tag: v9.1.0~135^2~1^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d99e6899caa8836cef338034e34ac6e4da928ed1;p=ceph.git mon: fix MonSession leak when waitlisting op Signed-off-by: Sage Weil --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 08420265d36..61fed6faec3 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -3507,10 +3507,9 @@ void Monitor::dispatch(MonOpRequestRef op) if (is_synchronizing() && !src_is_mon) { waitlist_or_zap_client(op); - return; + } else { + dispatch_op(op); } - - dispatch_op(op); s->put(); return; }