Skip to content

Commit

Permalink
Add missing fsync to lmdb compaction benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
cberner committed Jan 1, 2025
1 parent 6b4ec7f commit 6b7f870
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions benches/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ impl BenchDatabase for HeedBenchDatabase {
let file = env
.copy_to_file(path.join("data2.mdb"), CompactionOption::Enabled)
.unwrap();
file.sync_all().unwrap();
drop(file);

// We close the env
Expand Down

0 comments on commit 6b7f870

Please sign in to comment.