]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/MDBalancer: remove stale show_imports fn
authorJohn Spray <john.spray@redhat.com>
Thu, 17 Nov 2016 23:14:53 +0000 (23:14 +0000)
committerJohn Spray <john.spray@redhat.com>
Thu, 24 Nov 2016 10:33:06 +0000 (10:33 +0000)
This was just dropping its argument and
calling through to show_subtrees.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/MDBalancer.cc
src/mds/MDBalancer.h

index 0593fa91885cd83a67add2391db74b69673de449..5cad10bc53995b5a8b1d1cc48b20382f8f946b0e 100644 (file)
@@ -301,7 +301,7 @@ void MDBalancer::handle_heartbeat(MHeartbeat *m)
     beat_epoch = m->get_beat();
     send_heartbeat();
 
-    show_imports();
+    mds->mdcache->show_subtrees();
   }
 
   {
@@ -545,7 +545,7 @@ void MDBalancer::prep_rebalance(int beat)
     if (my_load < target_load * (1.0 + g_conf->mds_bal_min_rebalance)) {
       dout(5) << "  i am underloaded or barely overloaded, doing nothing." << dendl;
       last_epoch_under = beat_epoch;
-      show_imports();
+      mds->mdcache->show_subtrees();
       return;
     }
 
@@ -762,7 +762,7 @@ void MDBalancer::try_rebalance()
     double have = 0.0;
 
 
-    show_imports();
+    mds->mdcache->show_subtrees();
 
     // search imports from target
     if (import_from_map.count(target)) {
@@ -854,7 +854,7 @@ void MDBalancer::try_rebalance()
   }
 
   dout(5) << "rebalance done" << dendl;
-  show_imports();
+  mds->mdcache->show_subtrees();
 }
 
 
@@ -1193,12 +1193,3 @@ void MDBalancer::add_import(CDir *dir, utime_t now)
   }
 }
 
-
-
-
-
-
-void MDBalancer::show_imports(bool external)
-{
-  mds->mdcache->show_subtrees();
-}
index c98974de1c580f992295f71a4c39de0316928d61..7c64e750c8c2f81b990af2a6ecdb43c79fd44e86 100644 (file)
@@ -122,9 +122,6 @@ public:
   void hit_dir(utime_t now, class CDir *dir, int type, int who=-1, double amount=1.0);
   void hit_recursive(utime_t now, class CDir *dir, int type, double amount, double rd_adj);
 
-
-  void show_imports(bool external=false);
-
   void queue_split(CDir *dir);
   void queue_merge(CDir *dir);