Merge pull request #82 from alibaba/bugfix-1.6.4

fix bug of GetDetailedInfo panic
v4
Vinllen Chen 6 years ago committed by GitHub
commit d8eedb9e90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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