From: Sage Weil Date: Fri, 18 Sep 2015 18:24:27 +0000 (-0400) Subject: osd: just send alive when it is queue X-Git-Tag: v10.0.1~26^2~53 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=19b714f519123a014dc81634e13b89694b507a9d;p=ceph.git osd: just send alive when it is queue No need to futz with last_mon_report or resend it again later. Signed-off-by: Sage Weil --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index f325f2ba1922..f0baac9e672c 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -4027,7 +4027,6 @@ void OSD::tick() last_mon_report = now; // do any pending reports - send_alive(); service.send_pg_temp(); send_failures(); send_pg_stats(now); @@ -4383,7 +4382,7 @@ void OSD::ms_handle_connect(Connection *con) send_alive(); service.send_pg_temp(); send_failures(); - send_pg_stats(ceph_clock_now(cct)); + send_pg_stats(now); monc->sub_want("osd_pg_creates", 0, CEPH_SUBSCRIBE_ONETIME); monc->sub_want("osdmap", osdmap->get_epoch(), CEPH_SUBSCRIBE_ONETIME); @@ -4639,9 +4638,6 @@ void OSD::queue_want_up_thru(epoch_t want) << ", currently " << cur << dendl; up_thru_wanted = want; - - // expedite, a bit. WARNING this will somewhat delay other mon queries. - last_mon_report = ceph_clock_now(cct); send_alive(); } else { dout(10) << "queue_want_up_thru want " << want << " <= queued " << up_thru_wanted