From 03cd2f3772183d1421069d45738d472549612842 Mon Sep 17 00:00:00 2001 From: kimchy Date: Mon, 26 Jul 2010 00:22:21 +0300 Subject: [PATCH] fix <= --- .../admin/cluster/health/TransportClusterHealthAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/action/admin/cluster/health/TransportClusterHealthAction.java b/modules/elasticsearch/src/main/java/org/elasticsearch/action/admin/cluster/health/TransportClusterHealthAction.java index c5cd20ea1f8..6a42848cc7b 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/action/admin/cluster/health/TransportClusterHealthAction.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/action/admin/cluster/health/TransportClusterHealthAction.java @@ -101,7 +101,7 @@ public class TransportClusterHealthAction extends TransportMasterNodeOperationAc if (response.numberOfNodes() >= expected) { waitForCounter++; } - } else if (request.waitForNodes().startsWith("M=")) { + } else if (request.waitForNodes().startsWith("<=")) { int expected = Integer.parseInt(request.waitForNodes().substring(2)); if (response.numberOfNodes() <= expected) { waitForCounter++;