mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-15 16:34:44 +08:00
优化多网络服务发现
This commit is contained in:
@@ -85,7 +85,7 @@ func (cls *Cluster) DiscardNode(nodeId int){
|
||||
}
|
||||
|
||||
func (cls *Cluster) DelNode(nodeId int,immediately bool){
|
||||
//不删除
|
||||
//MasterDiscover结点与本地结点不删除
|
||||
if cls.GetMasterDiscoveryNodeInfo(nodeId)!=nil || nodeId == cls.localNodeInfo.NodeId {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user