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