Skip to content

Commit

Permalink
JGRP-2711 Relayer#getSiteNames isn't returning all the sites available
Browse files Browse the repository at this point in the history
  • Loading branch information
pruivo committed Jun 28, 2023
1 parent ccc4104 commit 955247b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/jgroups/protocols/relay/Relayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ protected synchronized Route getForwardingRouteMatching(String site, Address sen
}

protected List<String> getSiteNames() {
return new ArrayList<>(routes.keySet());
return Stream.concat(Stream.of(relay.site), routes.keySet().stream())
.collect(Collectors.toList());
}

protected synchronized List<Route> getRoutes(String ... excluded_sites) {
Expand Down

0 comments on commit 955247b

Please sign in to comment.