Skip to content

Commit

Permalink
Explicit truncation behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementNerma committed Feb 9, 2024
1 parent 40950a2 commit 0fef407
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/history/file_backed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ impl History for FileBackedHistory {
let mut f_lock = fd_lock::RwLock::new(
OpenOptions::new()
.create(true)
.truncate(false)
.write(true)
.read(true)
.open(fname)?,
Expand Down

0 comments on commit 0fef407

Please sign in to comment.