HBASE-12064 hbase.master.balancer.stochastic.numRegionLoadsToRemember is not used (Junegunn Choi)

This commit is contained in:
Andrew Purtell 2014-09-23 12:36:35 -07:00
parent 47ae4c2d20
commit 3d898fe16a
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ public class StochasticLoadBalancer extends BaseLoadBalancer {
if (rLoads == null) {
// There was nothing there
rLoads = new ArrayDeque<RegionLoad>();
} else if (rLoads.size() >= 15) {
} else if (rLoads.size() >= numRegionLoadsToRemember) {
rLoads.remove();
}
rLoads.add(entry.getValue());