Skip to content

Commit

Permalink
FileOutputStream: Properly pass block_size to CopyingOutputStreamAdaptor
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 492403550
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Dec 2, 2022
1 parent 9a85ed2 commit 1b1e399
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/google/protobuf/io/zero_copy_stream_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ int FileInputStream::CopyingFileInputStream::Skip(int count) {

// ===================================================================

FileOutputStream::FileOutputStream(int file_descriptor, int /*block_size*/)
: CopyingOutputStreamAdaptor(&copying_output_),
FileOutputStream::FileOutputStream(int file_descriptor, int block_size)
: CopyingOutputStreamAdaptor(&copying_output_, block_size),
copying_output_(file_descriptor) {}

bool FileOutputStream::Close() {
Expand Down

0 comments on commit 1b1e399

Please sign in to comment.