fsm: add missing ID/datacenter to persistNodes
This commit is contained in:
parent
70a051363f
commit
58ff5e46cb
|
@ -82,7 +82,9 @@ func (s *snapshot) persistNodes(sink raft.SnapshotSink,
|
||||||
for node := nodes.Next(); node != nil; node = nodes.Next() {
|
for node := nodes.Next(); node != nil; node = nodes.Next() {
|
||||||
n := node.(*structs.Node)
|
n := node.(*structs.Node)
|
||||||
req := structs.RegisterRequest{
|
req := structs.RegisterRequest{
|
||||||
|
ID: n.ID,
|
||||||
Node: n.Node,
|
Node: n.Node,
|
||||||
|
Datacenter: n.Datacenter,
|
||||||
Address: n.Address,
|
Address: n.Address,
|
||||||
TaggedAddresses: n.TaggedAddresses,
|
TaggedAddresses: n.TaggedAddresses,
|
||||||
NodeMeta: n.Meta,
|
NodeMeta: n.Meta,
|
||||||
|
|
Loading…
Reference in New Issue