]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: small cleanup in _ms_dispatch
authorSage Weil <sage@redhat.com>
Tue, 6 Oct 2015 19:18:21 +0000 (15:18 -0400)
committerSage Weil <sage@redhat.com>
Mon, 23 Nov 2015 13:38:48 +0000 (08:38 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/Monitor.cc

index 64cbb6cc62f59f57e4c1bfd4c0410bc980a48d73..e808a943cafabb7a8b598fc80099571a5c3bac83 100644 (file)
@@ -3427,9 +3427,10 @@ void Monitor::_ms_dispatch(Message *m)
       return;
     }
 
-    s = session_map.new_session(m->get_source_inst(), m->get_connection().get());
+    ConnectionRef con = m->get_connection();
+    s = session_map.new_session(m->get_source_inst(), con.get());
     assert(s);
-    m->get_connection()->set_priv(s->get());
+    con->set_priv(s->get());
     dout(10) << __func__ << " new session " << s << " " << *s << dendl;
     op->set_session(s);