etcdserver: updated cluster version

during cluster version update in etcd cluster, the log should info from
XX to XX.
This commit is contained in:
yangweiwei 2020-10-27 16:32:40 +08:00
parent 7da5182f1d
commit aa1024a16e

View File

@ -517,7 +517,7 @@ func (c *RaftCluster) SetVersion(ver *semver.Version, onSet func(*zap.Logger, *s
zap.String("cluster-id", c.cid.String()),
zap.String("local-member-id", c.localID.String()),
zap.String("from", version.Cluster(c.version.String())),
zap.String("from", version.Cluster(ver.String())),
zap.String("to", version.Cluster(ver.String())),
)
} else {
c.lg.Info(