From: Danny Al-Gaaf Date: Fri, 1 Mar 2013 13:18:04 +0000 (+0100) Subject: mon/Monitor.cc: reduce scope of reuse_caps in Monitor::_ms_dispatch() X-Git-Tag: v0.59~54^2~22 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e2fe6f00ecc10d4daf829c006d70c571b135b733;p=ceph.git mon/Monitor.cc: reduce scope of reuse_caps in Monitor::_ms_dispatch() Signed-off-by: Danny Al-Gaaf --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index bd1eaac2b312..529024cc1a87 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -2921,7 +2921,6 @@ bool Monitor::_ms_dispatch(Message *m) Connection *connection = m->get_connection(); MonSession *s = NULL; - bool reuse_caps = false; MonCaps caps; EntityName entity_name; bool src_is_mon; @@ -2929,6 +2928,7 @@ bool Monitor::_ms_dispatch(Message *m) src_is_mon = !connection || (connection->get_peer_type() & CEPH_ENTITY_TYPE_MON); if (connection) { + bool reuse_caps = false; dout(20) << "have connection" << dendl; s = static_cast(connection->get_priv()); if (s && s->closed) {