Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions swim/memberlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ import (

"github.com/benbjohnson/clock"
"github.com/dgryski/go-farm"
"github.com/uber-common/bark"
"github.com/temporalio/ringpop-go/logging"
"github.com/temporalio/ringpop-go/util"
"github.com/uber-common/bark"
)

// A memberlist contains the membership for a node
Expand Down Expand Up @@ -486,12 +486,13 @@ func (m *memberlist) Evict(address string) {
// makes a change to the member list
func (m *memberlist) MakeChange(address string, incarnation int64, status string) []Change {

member, _ := m.Member(address)

// create the new change based on information know to the memberlist
var change Change
m.members.RLock()
member := m.members.byAddress[address]
change.populateSubject(member)
change.populateSource(m.local)
m.members.RUnlock()

// Override values that are specific to the change we are making
change.Address = address
Expand Down