Skip to content

Commit ad3ce8b

Browse files
committed
Drop written buffers before reclaiming the budget.
1 parent 98365c3 commit ad3ce8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/diskio/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ pub fn write_file_incremental<P: AsRef<Path>, F: Fn(usize)>(
343343
{
344344
trace_scoped!("write_segment", "name": path_display, "len": len);
345345
f.write_all(&contents)?;
346+
drop(contents);
346347
chunk_complete_callback(len);
347348
}
348349
}

0 commit comments

Comments
 (0)