From: Kefu Chai Date: Mon, 6 Mar 2017 02:31:07 +0000 (+0800) Subject: mon/PGmonitor: remove unused last_sent_pg_create X-Git-Tag: v12.0.2~256^2~18 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d86f15ca6509893db1b304426def3221b4942996;p=ceph.git mon/PGmonitor: remove unused last_sent_pg_create Signed-off-by: Kefu Chai --- diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index 8d050e61eae..508cf9d95ff 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -60,7 +60,6 @@ static ostream& _prefix(std::ostream *_dout, const Monitor *mon, const PGMap& pg void PGMonitor::on_restart() { // clear leader state - last_sent_pg_create.clear(); last_osd_report.clear(); } @@ -203,9 +202,6 @@ void PGMonitor::update_from_paxos(bool *need_bootstrap) read_pgmap_meta(); out: - if (last_pg_scan != pg_map.last_pg_scan) - last_sent_pg_create.clear(); // reset pg_create throttle timer - assert(version == pg_map.version); update_logger(); @@ -931,7 +927,6 @@ epoch_t PGMonitor::send_pg_creates(int osd, Connection *con, epoch_t next) } con->send_message(m); - last_sent_pg_create[osd] = ceph_clock_now(); // sub is current through last + 1 return last + 1; diff --git a/src/mon/PGMonitor.h b/src/mon/PGMonitor.h index 5cdaaf2c21f..c1eaa2b612d 100644 --- a/src/mon/PGMonitor.h +++ b/src/mon/PGMonitor.h @@ -84,8 +84,6 @@ private: bool preprocess_command(MonOpRequestRef op); bool prepare_command(MonOpRequestRef op); - map last_sent_pg_create; // per osd throttle - // when we last received PG stats from each osd map last_osd_report;