mirror of
https://github.com/tuna/tunasync.git
synced 2025-04-20 20:22:46 +00:00
Fix wrong usage of val in leveldb backend
This commit is contained in:
parent
7dfe6a632c
commit
32c4d38449
@ -30,7 +30,7 @@ func (b *leveldbAdapter) GetAll(bucket string) (m map[string][]byte, err error)
|
|||||||
// it.Value() changes on next iteration
|
// it.Value() changes on next iteration
|
||||||
val := it.Value()
|
val := it.Value()
|
||||||
v := make([]byte, len(val))
|
v := make([]byte, len(val))
|
||||||
copy(v, it.Value())
|
copy(v, val)
|
||||||
m[actualKey] = v
|
m[actualKey] = v
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user