-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iceberg: pull ownership of iobuf out of avro_iobuf_ostream
When using a DataFile{Writer,Reader}, we'll need to be able to pass the buffer used by the writer. This is difficult to do with the current interface of avro_iobuf_ostream, which is std::moved into the writer. So, this moves the buffer outside of the ostream, which makes it easier for callers to manage the iobuf. Note, it doesn't appear the trimming I was doing on release() was needed after all.
- Loading branch information
Showing
2 changed files
with
9 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters