forked from redpanda-data/redpanda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iceberg: refactor Avro ostream to avoid iobuf
While ultimately we want an iobuf from the ostream, it currently requires pointer stability of the underlying fragments, which isn't an explicit contract of the iobuf. Instead, this tweaks the class to use a container of temporary_buffers directly, and expects callers to pass the buffers to an iobuf. There was some discussion on making iobuf smarter and providing an interface that guaranteed pointer stability of buffers. This seems like it'd be a heavy-handed requirement to impose on iobuf to enfroce. Putting the onus on callers seems like a quick, good-enough approach.
- Loading branch information
Showing
5 changed files
with
77 additions
and
41 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
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
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