From 356c2eea1787d0c6635e29903c5b165d9bbb862b Mon Sep 17 00:00:00 2001 From: siddontang Date: Mon, 1 Sep 2014 08:34:03 +0800 Subject: [PATCH] dump use raw key value --- ledis/dump.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ledis/dump.go b/ledis/dump.go index 67908a8..63c1d58 100644 --- a/ledis/dump.go +++ b/ledis/dump.go @@ -81,8 +81,8 @@ func (l *Ledis) Dump(w io.Writer) error { var key []byte var value []byte for ; it.Valid(); it.Next() { - key = it.Key() - value = it.Value() + key = it.RawKey() + value = it.RawValue() if key, err = snappy.Encode(compressBuf, key); err != nil { return err