From 229d1f1882b8a8383ba96c7effb239ebb3375475 Mon Sep 17 00:00:00 2001 From: vinllen Date: Tue, 25 Jun 2019 22:42:45 +0800 Subject: [PATCH] support lua in decode mode2 --- src/redis-shake/decode.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/redis-shake/decode.go b/src/redis-shake/decode.go index 986f731..3aa12fd 100644 --- a/src/redis-shake/decode.go +++ b/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()