]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix MonSession leak when waitlisting op
authorSage Weil <sage@redhat.com>
Mon, 14 Sep 2015 13:56:57 +0000 (09:56 -0400)
committerSage Weil <sage@redhat.com>
Mon, 14 Sep 2015 13:56:57 +0000 (09:56 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/Monitor.cc

index 08420265d3650acc3a02d16470fb2112fa70738c..61fed6faec392ba1e1045e6395771d9efe113917 100644 (file)
@@ -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;
 }