]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: Don't put session during feature change 33154/head
authorBrad Hubbard <bhubbard@redhat.com>
Tue, 3 Dec 2019 06:54:03 +0000 (16:54 +1000)
committerShyukri Shyukriev <shshyukriev@suse.com>
Sat, 8 Feb 2020 21:42:51 +0000 (23:42 +0200)
The session gets put as result of the set_session call in the next
block.

Fixes: https://tracker.ceph.com/issues/38345
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit 8f23f2c6de43c2dfe7107acf2d8fef45c3d2a886)

src/mon/Monitor.cc

index 19d1735cdf0ae8d4ed68b972d453634f9b6e2902..e78b3ab459270e0210cfdc11e4242d3e154d28b5 100644 (file)
@@ -4028,7 +4028,6 @@ void Monitor::_ms_dispatch(Message *m)
         // exist only while the op is being handled.
         remove_session(s);
       }
-      s->put();
       s = nullptr;
     }
   }