Skip to content

Commit

Permalink
Merge branch 'main' into 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Dec 13, 2024
2 parents 3f24324 + 0a11dd3 commit da3a169
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 da3a169

Please sign in to comment.