Remove dead code and stale Javadoc
This commit is contained in:
parent
099ccd36ee
commit
1fee1045b9
|
@ -382,14 +382,11 @@ public class IndicesClusterStateService extends AbstractLifecycleComponent imple
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes shards that are currently loaded by indicesService but have disappeared from the routing table of the current node.
|
* Removes shards that are currently loaded by indicesService but have disappeared from the routing table of the current node.
|
||||||
* Also removes shards where the recovery source node has changed.
|
|
||||||
* This method does not delete the shard data.
|
* This method does not delete the shard data.
|
||||||
*
|
*
|
||||||
* @param state new cluster state
|
* @param state new cluster state
|
||||||
*/
|
*/
|
||||||
private void removeShards(final ClusterState state) {
|
private void removeShards(final ClusterState state) {
|
||||||
final RoutingTable routingTable = state.routingTable();
|
|
||||||
final DiscoveryNodes nodes = state.nodes();
|
|
||||||
final String localNodeId = state.nodes().getLocalNodeId();
|
final String localNodeId = state.nodes().getLocalNodeId();
|
||||||
assert localNodeId != null;
|
assert localNodeId != null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue