mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
修复结点删除错误
This commit is contained in:
@@ -75,7 +75,7 @@ func (cls *Cluster) delServiceNode(serviceName string,nodeId int){
|
|||||||
nodeList := cls.mapServiceNode[serviceName]
|
nodeList := cls.mapServiceNode[serviceName]
|
||||||
for idx,nId := range nodeList {
|
for idx,nId := range nodeList {
|
||||||
if nId == nodeId {
|
if nId == nodeId {
|
||||||
cls.mapServiceNode[serviceName] = append(nodeList[idx:],nodeList[idx+1:]...)
|
cls.mapServiceNode[serviceName] = append(nodeList[:idx],nodeList[idx+1:]...)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user