Skip to content

Commit

Permalink
Fix another false positive in check_integrity()
Browse files Browse the repository at this point in the history
  • Loading branch information
cberner committed Aug 17, 2024
1 parent 59ac583 commit c380f7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tree_store/page_store/region.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ impl Allocators {
}

pub(crate) fn xxh3_hash(&self) -> u128 {
let mut result = xxh3_checksum(&self.region_tracker.to_vec());
// Ignore the region tracker because it is an optimistic cache, and so may not match
// between repairs of the allocators
let mut result = 0;
for allocator in self.region_allocators.iter() {
result ^= xxh3_checksum(&allocator.to_vec());
}
Expand Down

0 comments on commit c380f7c

Please sign in to comment.