diff --git a/ChangeLog b/ChangeLog index 0b13d9c..ce07d35 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/src/redis-shake/sync.go b/src/redis-shake/sync.go index 5d47729..bf87590 100644 --- a/src/redis-shake/sync.go +++ b/src/redis-shake/sync.go @@ -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