support lua in decode mode2

v4
vinllen 5 years ago
parent d7e515adb2
commit 229d1f1882
  1. 4
      src/redis-shake/decode.go

@ -137,13 +137,13 @@ func (cmd *CmdDecode) decoderMain(ipipe <-chan *rdb.BinEntry, opipe chan<- strin
}
for e := range ipipe {
var b bytes.Buffer
if e.Type == rdb.RdbFlagAUX && string(e.Key) == "lua" {
if e.Type == rdb.RdbFlagAUX {
o := &struct {
Type string `json:"type"`
Key string `json:"key"`
Value64 string `json:"value64"`
}{
"aux", "lua", string(e.Value),
"aux", string(e.Key), string(e.Value),
}
fmt.Fprintf(&b, "%s\n", toJson(o))
cmd.nentry.Incr()

Loading…
Cancel
Save