dump use raw key value

This commit is contained in:
siddontang 2014-09-01 08:34:03 +08:00
parent d94f4629c2
commit 356c2eea17
1 changed files with 2 additions and 2 deletions

View File

@ -81,8 +81,8 @@ func (l *Ledis) Dump(w io.Writer) error {
var key []byte var key []byte
var value []byte var value []byte
for ; it.Valid(); it.Next() { for ; it.Valid(); it.Next() {
key = it.Key() key = it.RawKey()
value = it.Value() value = it.RawValue()
if key, err = snappy.Encode(compressBuf, key); err != nil { if key, err = snappy.Encode(compressBuf, key); err != nil {
return err return err