Skip to content

Commit

Permalink
Merge pull request #56 from ylgrgyq/fix/open-segment-file-after-create
Browse files Browse the repository at this point in the history
set create file option to false on opening a segment file just created
  • Loading branch information
timvisee committed Sep 26, 2023
2 parents 374103e + d0946ec commit f22abd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/segment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl Segment {
let file = OpenOptions::new()
.read(true)
.write(true)
.create(true)
.create(false)
.open(&path)?;

let mmap = MmapViewSync::from_file(&file, 0, capacity)?;
Expand Down

0 comments on commit f22abd5

Please sign in to comment.