]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: remove duplicated check on balance amount 27087/head
authorZhi Zhang <willzzhang@tencent.com>
Thu, 21 Mar 2019 06:30:53 +0000 (14:30 +0800)
committerZhi Zhang <willzzhang@tencent.com>
Thu, 21 Mar 2019 06:30:53 +0000 (14:30 +0800)
Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
src/mds/MDBalancer.cc

index 105f7e5abe42551dea6f937a5417e876f1a146fd..0975d1124992d3753bfe74952e3d2274410e9eb9 100644 (file)
@@ -483,7 +483,6 @@ double MDBalancer::try_match(balance_state_t& state, mds_rank_t ex, double& maxe
   if (maxex <= 0 || maxim <= 0) return 0.0;
 
   double howmuch = std::min(maxex, maxim);
-  if (howmuch <= 0) return 0.0;
 
   dout(5) << "   - mds." << ex << " exports " << howmuch << " to mds." << im << dendl;