Skip to content

Commit

Permalink
fetch cluster nodes when redirect occurred (#95)
Browse files Browse the repository at this point in the history
* Update slowlog, add detailed time records

* fix time record MarkEndInput

* fetch cluster nodes when key moved

* package imports fix

* 1/ update pipeline
2/ add addr to slowlog

* 1/ update some variable names

* 1/ recovery mset
2/ recovery respType type

* version 1.8.4
  • Loading branch information
Yiming Yu authored and wayslog committed Aug 21, 2019
1 parent 042af22 commit 9bfd2a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions proxy/proto/redis/cluster/node_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func (nc *nodeConn) Read(m *proto.Message) (err error) {
if !bytes.HasPrefix(data, askBytes) && !bytes.HasPrefix(data, movedBytes) {
return
}

addrBs, _, isAsk, _ := parseRedirect(data)
if !isAsk {
// tryFetch when key moved
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
const (
OverlordMajor = 1
OverlordMinor = 8
OverlordPatch = 3
OverlordPatch = 4
)

var (
Expand Down

0 comments on commit 9bfd2a7

Please sign in to comment.