release v1.6.22

v4
vinllen 5 years ago
parent 3769770db2
commit 1c56a336a6
  1. 9
      ChangeLog
  2. 4
      src/redis-shake/common/crc16.go

@ -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. 2019-11-12 Alibaba Cloud.
* VERSION: 1.6.21 * VERSION: 1.6.21
* BUGFIX: update redis-go-cluster to solve the MOVED error when target * BUGFIX: update redis-go-cluster to solve the MOVED error when target

@ -81,8 +81,8 @@ var crc16tab = [256]uint16{
func crc16(buf string) uint16 { func crc16(buf string) uint16 {
var crc uint16 var crc uint16
for _, n := range buf { for i := 0; i < len(buf); i++ {
crc = (crc << uint16(8)) ^ crc16tab[((crc>>uint16(8))^uint16(n))&0x00FF] crc = (crc << uint16(8)) ^ crc16tab[((crc>>uint16(8))^uint16(buf[i]))&0x00FF]
} }
return crc return crc
} }
Loading…
Cancel
Save