From: Sage Weil Date: Tue, 6 Oct 2015 19:19:33 +0000 (-0400) Subject: mon: remove old subscribe renewal-based timeouts X-Git-Tag: v10.0.1~26^2~29 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ae9d5ee65c1a0cd2444671bddfb83fd3a2667552;p=ceph.git mon: remove old subscribe renewal-based timeouts This is no longer needed/used. Signed-off-by: Sage Weil --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index e808a943cafa..4bbf314beb3c 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -3437,13 +3437,7 @@ void Monitor::_ms_dispatch(Message *m) logger->set(l_mon_num_sessions, session_map.get_size()); logger->inc(l_mon_session_add); - if (!src_is_mon) { - dout(30) << __func__ << " setting timeout on session" << dendl; - // set an initial timeout here, so we will trim this session - // even if they don't do anything. - s->until = ceph_clock_now(g_ceph_context); - s->until += g_conf->mon_subscribe_interval; - } else { + if (src_is_mon) { // give it monitor caps; the peer type has been authenticated dout(5) << __func__ << " setting monitor caps on this connection" << dendl; if (!s->caps.is_allow_all()) // but no need to repeatedly copy @@ -4131,8 +4125,6 @@ void Monitor::handle_subscribe(MonOpRequestRef op) MonSession *s = op->get_session(); assert(s); - s->until = ceph_clock_now(g_ceph_context); - s->until += g_conf->mon_subscribe_interval; for (map::iterator p = m->what.begin(); p != m->what.end(); ++p) { diff --git a/src/mon/Session.h b/src/mon/Session.h index e8b187e2ba33..d91de2666dba 100644 --- a/src/mon/Session.h +++ b/src/mon/Session.h @@ -41,7 +41,6 @@ struct MonSession : public RefCountedObject { ConnectionRef con; entity_inst_t inst; utime_t session_timeout; - utime_t until; utime_t time_established; bool closed; xlist::item item;