diff --git a/ChangeLog b/ChangeLog index e57b5358..f2ed9d34 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2019-11-25 Alibaba Cloud. + * VERSION: 1.6.22 + * BUGFIX: solve MOVED error when key is unicode encoding which is not + solved completed in v1.6.21. + * BUGFIX: update redis-go-cluster to solve the bug of \r\n. see #73 in + redis-full-check. + * BUGFIX: solve flushcount comparison: "flushcount=4097 > 4096" => + "flushcount=4096 >= 4096". + * IMPROVE: add more log in redis-go-cluster. 2019-11-12 Alibaba Cloud. * VERSION: 1.6.21 * BUGFIX: update redis-go-cluster to solve the MOVED error when target diff --git a/src/redis-shake/common/crc16.go b/src/redis-shake/common/crc16.go index 5f4f9c4f..b2389052 100644 --- a/src/redis-shake/common/crc16.go +++ b/src/redis-shake/common/crc16.go @@ -81,8 +81,8 @@ var crc16tab = [256]uint16{ func crc16(buf string) uint16 { var crc uint16 - for _, n := range buf { - crc = (crc << uint16(8)) ^ crc16tab[((crc>>uint16(8))^uint16(n))&0x00FF] + for i := 0; i < len(buf); i++ { + crc = (crc << uint16(8)) ^ crc16tab[((crc>>uint16(8))^uint16(buf[i]))&0x00FF] } return crc -} +} \ No newline at end of file