src/backup/fixed_index.rs: do not use offset for checksum
This commit is contained in:
@ -194,7 +194,6 @@ impl FixedIndexReader {
|
||||
for pos in 0..self.index_length {
|
||||
chunk_end = ((pos+1) * self.chunk_size) as u64;
|
||||
let digest = self.chunk_digest(pos);
|
||||
csum.update(&chunk_end.to_le_bytes());
|
||||
csum.update(digest);
|
||||
}
|
||||
let csum = csum.finish();
|
||||
|
Reference in New Issue
Block a user