Skip to content

Commit

Permalink
Fixes fuzzer: the database now enacts commits on drop properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Tpt committed Mar 27, 2023
1 parent debeb39 commit a28a58d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fuzz/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ pub trait DbSimulator {
&options,
),
Action::Restart => {
// drop processes commits
for layer in &mut layers {
if !layer.written {
layer.written = true;
}
}
old_layers.push(layers.clone());
db = {
drop(db);
Expand Down

0 comments on commit a28a58d

Please sign in to comment.