Skip to content

Commit

Permalink
Specify truncation behavior when opening new segment file
Browse files Browse the repository at this point in the history
  • Loading branch information
timvisee committed Feb 6, 2024
1 parent dac8bcd commit 8213f16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/segment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ impl Segment {
.read(true)
.write(true)
.create(true)
.truncate(true)
.open(&tmp_file_path)?;

// fs4 provides some cross-platform bindings which help for Windows.
Expand Down

0 comments on commit 8213f16

Please sign in to comment.