src/backup/chunk_store.rs: read_chunk - clear buffer before calling read_to_end
This commit is contained in:
parent
dc04ce7fe5
commit
d2690f74bb
|
@ -181,6 +181,7 @@ impl ChunkStore {
|
|||
let digest_str = tools::digest_to_hex(&digest);
|
||||
chunk_path.push(&digest_str);
|
||||
|
||||
buffer.clear();
|
||||
let f = std::fs::File::open(&chunk_path)?;
|
||||
let mut decoder = lz4::Decoder::new(f)?;
|
||||
|
||||
|
|
Loading…
Reference in New Issue