Skip to content

Commit

Permalink
RELAY.getCurrentSites() must return a List, not a Collection (Infinis…
Browse files Browse the repository at this point in the history
…pan requires this)
  • Loading branch information
belaban committed Aug 6, 2023
1 parent 38e833e commit 1d08a4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/jgroups/protocols/relay/RELAY.java
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ public Route getRoute(String site_name) {
* @return A {@link List} of sites name that are currently up or {@code null} if this node is not a Site Master (i.e.
* {@link #isSiteMaster()} returns false).
*/
public Collection<String> getCurrentSites() {
public List<String> getCurrentSites() { // must return a List, as Infinispan expects a List (not a Collection)
Relayer rel=relayer;
return rel == null ? null : rel.getSiteNames();
return rel == null ? null : new ArrayList<>(rel.getSiteNames());
}

/**
Expand Down

0 comments on commit 1d08a4f

Please sign in to comment.