Skip to content

Commit

Permalink
Check that defragment is only called on a clean extent
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeter committed Nov 3, 2023
1 parent fa3878b commit 5ed99f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions downstairs/src/extent_inner_raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,8 @@ impl RawInner {
// We track the number of A vs B slots, as well as the range covered by
// the slots. It's that range that we'll need to read + write, so we
// want to pick whichever slot does less work.
assert!(!self.dirty); // This can only be called after a flush!

#[derive(Copy, Clone)]
struct Counter {
count: usize,
Expand Down

0 comments on commit 5ed99f7

Please sign in to comment.