Remove superfluous method
This commit is contained in:
parent
fc0a33be05
commit
207dfc457d
|
@ -259,14 +259,6 @@ public class BalancedShardsAllocator extends AbstractComponent implements Shards
|
|||
return avgShardsPerNode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the global average of primaries per node
|
||||
*/
|
||||
public float avgPrimariesPerNode() {
|
||||
return ((float) metaData.numberOfShards()) / nodes.size();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns a new {@link NodeSorter} that sorts the nodes based on their
|
||||
* current weight with respect to the index passed to the sorter. The
|
||||
|
|
Loading…
Reference in New Issue