Skip to content

Commit

Permalink
create file for writing
Browse files Browse the repository at this point in the history
  • Loading branch information
dkijania committed Sep 23, 2021
1 parent bbd0152 commit ee3adac
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -39,7 +39,7 @@ pub fn write_into_persistent_log<P: AsRef<Path>>(
persistent_log: P,
entries: Vec<PersistentFragmentLog>,
) -> Result<(), Error> {
let mut output = BufWriter::with_capacity(128 * 1024, File::open(persistent_log.as_ref())?);
let mut output = BufWriter::with_capacity(128 * 1024, File::create(persistent_log.as_ref())?);

for entry in entries {
let codec = bincode::DefaultOptions::new().with_fixint_encoding();
Expand Down

0 comments on commit ee3adac

Please sign in to comment.