From 1c56a336a67e348a5021745e1b596bdbcf9256bb Mon Sep 17 00:00:00 2001 From: vinllen Date: Mon, 25 Nov 2019 18:40:52 +0800 Subject: [PATCH] release v1.6.22 --- ChangeLog | 9 +++++++++ src/redis-shake/common/crc16.go | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e57b535..f2ed9d3 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 5f4f9c4..b238905 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