fsm: add missing ID/datacenter to persistNodes

This commit is contained in:
Kyle Havlovitz 2018-10-30 15:52:54 -07:00
parent 70a051363f
commit 58ff5e46cb
1 changed files with 2 additions and 0 deletions

View File

@ -82,7 +82,9 @@ func (s *snapshot) persistNodes(sink raft.SnapshotSink,
for node := nodes.Next(); node != nil; node = nodes.Next() {
n := node.(*structs.Node)
req := structs.RegisterRequest{
ID: n.ID,
Node: n.Node,
Datacenter: n.Datacenter,
Address: n.Address,
TaggedAddresses: n.TaggedAddresses,
NodeMeta: n.Meta,