mirror of https://github.com/ledisdb/ledisdb.git
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 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
|
||||||
|
|
Loading…
Reference in New Issue