mirror of https://github.com/status-im/consul.git
Change member join reconcile step to process joining itself, to handle node IP address changes correctly when number of servers < 3
This commit is contained in:
parent
39b3d03f19
commit
5f2e1c9b07
|
@ -626,8 +626,8 @@ func (s *Server) handleDeregisterMember(reason string, member serf.Member) error
|
|||
|
||||
// joinConsulServer is used to try to join another consul server
|
||||
func (s *Server) joinConsulServer(m serf.Member, parts *metadata.Server) error {
|
||||
// Do not join ourself
|
||||
if m.Name == s.config.NodeName {
|
||||
// Do not join ourself if we are the only member
|
||||
if m.Name == s.config.NodeName && len(s.serfLAN.Members()) == 1 {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue