Skip to content

Commit

Permalink
Drop written buffers before reclaiming the budget.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbtcollins committed May 4, 2021
1 parent 98365c3 commit ad3ce8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/diskio/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ pub fn write_file_incremental<P: AsRef<Path>, F: Fn(usize)>(
{
trace_scoped!("write_segment", "name": path_display, "len": len);
f.write_all(&contents)?;
drop(contents);
chunk_complete_callback(len);
}
}
Expand Down

0 comments on commit ad3ce8b

Please sign in to comment.