]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGmonitor: remove unused last_sent_pg_create
authorKefu Chai <kchai@redhat.com>
Mon, 6 Mar 2017 02:31:07 +0000 (10:31 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 30 Mar 2017 12:21:17 +0000 (20:21 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/PGMonitor.cc
src/mon/PGMonitor.h

index 8d050e61eaeeacbd98a57bd7d822548bb472b2cf..508cf9d95ffa3dd7ae34c0a1d5311c6d63b876dc 100644 (file)
@@ -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;
index 5cdaaf2c21fdf050b0c2f7f0a1116627505567c7..c1eaa2b612da7ae091b9fa4cf3d2838bbd8733ca 100644 (file)
@@ -84,8 +84,6 @@ private:
   bool preprocess_command(MonOpRequestRef op);
   bool prepare_command(MonOpRequestRef op);
 
-  map<int,utime_t> last_sent_pg_create;  // per osd throttle
-
   // when we last received PG stats from each osd
   map<int,utime_t> last_osd_report;