mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
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) {
|
if (shardRoutings == null) {
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
return Math.toIntExact(shardRoutings.stream().filter(Predicate.not(ShardRouting::relocating)).count());
|
return Math.toIntExact(shardRoutings.stream().filter(sr -> sr.relocating() == false).count());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user