Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Dec 5, 2024
1 parent 0aeb2e2 commit bba1473
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/gc-simple/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "gc-tokio"
name = "gc-simple"
version = "0.1.0"
edition = "2021"

Expand Down
5 changes: 1 addition & 4 deletions src/journal/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,7 @@ impl Writer {
rename(&self.path, &sealed_path)?;

// IMPORTANT: fsync moved file
{
let file = File::open(&sealed_path)?;
file.sync_all()?;
}
self.file.get_mut().sync_all()?;

// IMPORTANT: fsync folder on Unix
fsync_directory(&folder)?;
Expand Down

0 comments on commit bba1473

Please sign in to comment.