mirror of
https://github.com/tuna/tunasync.git
synced 2026-07-03 12:28:07 +08:00
Fix wrong usage of val in leveldb backend
This commit is contained in:
@@ -30,7 +30,7 @@ func (b *leveldbAdapter) GetAll(bucket string) (m map[string][]byte, err error)
|
||||
// it.Value() changes on next iteration
|
||||
val := it.Value()
|
||||
v := make([]byte, len(val))
|
||||
copy(v, it.Value())
|
||||
copy(v, val)
|
||||
m[actualKey] = v
|
||||
}
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user