forked from mirror/ledisdb
dump use raw key value
This commit is contained in:
parent
d94f4629c2
commit
356c2eea17
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue