src/backup/chunk_store.rs: read_chunk - clear buffer before calling read_to_end
This commit is contained in:
		| @ -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)?; | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user