Skip to content

Commit

Permalink
create file for writing
Browse files Browse the repository at this point in the history
  • Loading branch information
dkijania authored and Mr-Leshiy committed Oct 12, 2021
1 parent 9cce1ae commit e6f02d5
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 e6f02d5

Please sign in to comment.