Update decoder.go

v4
shuffle 5 years ago committed by GitHub
parent eeb6e3d1ac
commit fa11d64291
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/pkg/redis/decoder.go

@ -103,6 +103,10 @@ func (d *Decoder) decodeType() (respType, error) {
if b, err := d.r.ReadByte(); err != nil {
return 0, errors.Trace(err)
} else if string(b) == "\n" {
/*
* Bugfix: see https://github.com/alibaba/RedisShake/issues/204.
* "\n" occurs before and after the +FULLRESYNC response sometimes at the redis version of 3.2.7.
*/
goto ReadByte
} else {
return respType(b), nil

Loading…
Cancel
Save