update driver bugfix: 1. bulk string return -1 is legal; 2. handle lua script in cluster

v4
vinllen 5 years ago
parent f2764b777d
commit 37dcc7dea3
  1. 6
      ChangeLog
  2. 4
      src/redis-shake/sync.go
  3. 6
      src/vendor/vendor.json

@ -1,3 +1,9 @@
2019-11-28 Alibaba Cloud.
* VERSION: 1.6.23
* BUGFIX: update redis-go-cluster driver to solve MOVED error in lua
script.
* BUGFIX: update redis-go-clister driver to remove the error when meets
nil bluk string.
2019-11-25 Alibaba Cloud.
* VERSION: 1.6.22
* BUGFIX: solve MOVED error when key is unicode encoding which is not

@ -535,7 +535,7 @@ func (ds *dbSyncer) syncCommand(reader *bufio.Reader, target []string, auth_type
id := recvId.Get() // receive id
// print debug log of receive reply
log.Debugf("receive reply-id[%v]: [%v], error:[%v]", id, reply, err)
log.Debugf("dbSyncer[%v] receive reply-id[%v]: [%v], error:[%v]", ds.id, id, reply, err)
if conf.Options.Metric == false {
continue
@ -601,7 +601,7 @@ func (ds *dbSyncer) syncCommand(reader *bufio.Reader, target []string, auth_type
metric.GetMetric(ds.id).AddPullCmdCount(ds.id, 1)
// print debug log of send command
if conf.Options.LogLevel == utils.LogLevelDebug {
if conf.Options.LogLevel == utils.LogLevelDebug || conf.Options.LogLevel == utils.LogLevelAll {
strArgv := make([]string, len(argv))
for i, ele := range argv {
strArgv[i] = *(*string)(unsafe.Pointer(&ele))

@ -159,10 +159,10 @@
"revisionTime": "2019-03-04T09:57:49Z"
},
{
"checksumSHA1": "TCoDN4L8oq/S41a1VR2iONqN+mE=",
"checksumSHA1": "Y95c1YwyU+rB+mFMSB4zhxCpt+Q=",
"path": "github.com/vinllen/redis-go-cluster",
"revision": "6e304ef1b7fc2db6f913570112aa2a2c4d80ef81",
"revisionTime": "2019-11-20T07:29:33Z"
"revision": "f33d5a7283f2dc28233aa0069d7ec1798323cdad",
"revisionTime": "2019-11-28T04:11:03Z"
},
{
"checksumSHA1": "U4rR1I0MXcvJz3zSxTp3hb3Y0I0=",

Loading…
Cancel
Save