fix <=
This commit is contained in:
parent
ac7c8cb650
commit
03cd2f3772
|
@ -101,7 +101,7 @@ public class TransportClusterHealthAction extends TransportMasterNodeOperationAc
|
||||||
if (response.numberOfNodes() >= expected) {
|
if (response.numberOfNodes() >= expected) {
|
||||||
waitForCounter++;
|
waitForCounter++;
|
||||||
}
|
}
|
||||||
} else if (request.waitForNodes().startsWith("M=")) {
|
} else if (request.waitForNodes().startsWith("<=")) {
|
||||||
int expected = Integer.parseInt(request.waitForNodes().substring(2));
|
int expected = Integer.parseInt(request.waitForNodes().substring(2));
|
||||||
if (response.numberOfNodes() <= expected) {
|
if (response.numberOfNodes() <= expected) {
|
||||||
waitForCounter++;
|
waitForCounter++;
|
||||||
|
|
Loading…
Reference in New Issue