Include MaxVersion in Cluster Config message

This commit is contained in:
Jakob Borg
2014-06-23 09:31:59 +02:00
parent 77fe8449ba
commit 21518adfc8
3 changed files with 30 additions and 15 deletions

View File

@@ -342,6 +342,7 @@ func (o Node) encodeXDR(xw *xdr.Writer) (int, error) {
}
xw.WriteString(o.ID)
xw.WriteUint32(o.Flags)
xw.WriteUint64(o.MaxVersion)
return xw.Tot(), xw.Error()
}
@@ -359,6 +360,7 @@ func (o *Node) UnmarshalXDR(bs []byte) error {
func (o *Node) decodeXDR(xr *xdr.Reader) error {
o.ID = xr.ReadStringMax(64)
o.Flags = xr.ReadUint32()
o.MaxVersion = xr.ReadUint64()
return xr.Error()
}