From: Zhi Zhang Date: Thu, 21 Mar 2019 06:30:53 +0000 (+0800) Subject: mds: remove duplicated check on balance amount X-Git-Tag: v15.0.0~23^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F27087%2Fhead;p=ceph.git mds: remove duplicated check on balance amount Signed-off-by: Zhi Zhang --- diff --git a/src/mds/MDBalancer.cc b/src/mds/MDBalancer.cc index 105f7e5abe4..0975d112499 100644 --- a/src/mds/MDBalancer.cc +++ b/src/mds/MDBalancer.cc @@ -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;