Fix LazyChunkReader slice bounds out of range error

This commit is contained in:
Janos Guljas 2018-01-25 18:06:20 +01:00
parent f43390f5af
commit b5a174a9e7

View file

@ -99,6 +99,7 @@ func (self *LocalStore) Put(chunk *Chunk) {
c := &Chunk{ c := &Chunk{
Key: Key(append([]byte{}, chunk.Key...)), Key: Key(append([]byte{}, chunk.Key...)),
SData: append([]byte{}, chunk.SData...), SData: append([]byte{}, chunk.SData...),
Size: chunk.Size,
dbStored: chunk.dbStored, dbStored: chunk.dbStored,
} }
self.memStore.Put(c) self.memStore.Put(c)