remove the cluster limit when target type is rump2

v4
vinllen 5 years ago
parent 877633dc5f
commit de42ae35f8
  1. 6
      src/redis-shake/common/configure.go

@ -96,9 +96,9 @@ func parseAddress(tp, address, redisType string, isSource bool) error {
}
}
case conf.RedisTypeCluster:
if isSource == false && tp == conf.TypeRump {
return fmt.Errorf("target type[%v] can't be cluster when type is 'rump' currently", redisType)
}
//if isSource == false && tp == conf.TypeRump {
// return fmt.Errorf("target type[%v] can't be cluster when type is 'rump' currently", redisType)
//}
if strings.Contains(address, AddressSplitter) {
arr := strings.Split(address, AddressSplitter)
if len(arr) != 2 {

Loading…
Cancel
Save