Fix compilation in RoutingNode
This commit fixes compilation in RoutingNode.java after a backport brought back usage of an API not available in JDK 8.
This commit is contained in:
parent
b649b0d273
commit
bc5dae2713
|
@ -293,7 +293,7 @@ public class RoutingNode implements Iterable<ShardRouting> {
|
|||
if (shardRoutings == null) {
|
||||
return 0;
|
||||
} else {
|
||||
return Math.toIntExact(shardRoutings.stream().filter(Predicate.not(ShardRouting::relocating)).count());
|
||||
return Math.toIntExact(shardRoutings.stream().filter(sr -> sr.relocating() == false).count());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue