Skip to content

Commit

Permalink
- Fetch the topology in sitesUp()
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Aug 18, 2023
1 parent eaa3c25 commit e674df6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/org/jgroups/protocols/relay/RELAY3.java
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,12 @@ protected boolean handleAdminMessage(RelayHeader hdr, Message msg) {
Set<String> tmp=site_status.add(tmp_sites, status);
if(status == Status.down)
topo.removeAll(tmp_sites);
else {
if(topo.globalViews()) {
for(String s : tmp_sites)
topo.refresh(s, true);
}
}
if(route_status_listener != null && !tmp.isEmpty()) {
String[] t=tmp.toArray(new String[]{});
if(hdr.type == SITES_UP)
Expand Down

0 comments on commit e674df6

Please sign in to comment.