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

This commit is contained in:
Andrew Purtell 2014-09-23 12:36:34 -07:00
parent d94f24b901
commit e06b4bcf35
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,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());