mirror of
https://github.com/ctripcorp/zeus.git
synced 2024-09-22 00:26:05 +08:00
update upstream name
This commit is contained in:
parent
9b7b49bb44
commit
da747b51a2
|
@ -126,7 +126,7 @@ public class GroupStatusServiceImpl implements GroupStatusService {
|
|||
private boolean getUpstreamStatus(Long groupId, String ip , boolean memberUp , boolean serverUp) throws Exception {
|
||||
UpstreamStatus upstreamStatus = LocalClient.getInstance().getUpstreamStatus();
|
||||
List<S> servers = upstreamStatus.getServers().getServer();
|
||||
String upstreamNameEndWith = "_"+groupRepository.getById(groupId).getName();
|
||||
String upstreamNameEndWith = "_"+groupRepository.getById(groupId).getId();
|
||||
for (S server : servers) {
|
||||
if (!server.getUpstream().endsWith(upstreamNameEndWith))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue