fix bug of GetDetailedInfo panic

v4
vinllen 6 years ago
parent 6af95d0988
commit a80d6bc75e
  1. 3
      ChangeLog
  2. 3
      src/redis-shake/sync.go

@ -1,3 +1,6 @@
2019-05-30 Alibaba Cloud.
* VERSION: 1.6.4
* BUGFIX: fix bug of `GetDetailedInfo` panic.
2019-05-26 Alibaba Cloud.
* VERSION: 1.6.3
* IMPROVE: target address supports cluster.

@ -61,6 +61,9 @@ type CmdSync struct {
func (cmd *CmdSync) GetDetailedInfo() interface{} {
ret := make([]map[string]interface{}, len(cmd.dbSyncers))
for i, syncer := range cmd.dbSyncers {
if syncer == nil {
continue
}
ret[i] = syncer.GetExtraInfo()
}
return ret

Loading…
Cancel
Save