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