add _all option to nodes based operations

This commit is contained in:
kimchy 2010-04-05 01:17:53 +03:00
parent 341f6d3963
commit 8cfa04cea3
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ public abstract class TransportNodesOperationAction<Request extends NodesOperati
this.listener = listener;
clusterState = clusterService.state();
String[] nodesIds = request.nodesIds();
if (nodesIds == null || nodesIds.length == 0) {
if (nodesIds == null || nodesIds.length == 0 || (nodesIds.length == 1 && nodesIds[0].equals("_al"))) {
int index = 0;
nodesIds = new String[clusterState.nodes().size()];
for (Node node : clusterState.nodes()) {