-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-43949: [C++] io::BufferedInput: Fix invalid state after SetBufferSize #44387
Changes from all commits
1970634
e3c7eea
9f39c99
0a111dc
aecf05e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,6 +111,7 @@ class ARROW_EXPORT BufferedInputStream | |
int64_t raw_read_bound = -1); | ||
|
||
/// \brief Resize internal read buffer; calls to Read(...) will read at least | ||
/// this many bytes from the raw InputStream if possible. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't quite understand what's the intent of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. both ok to me |
||
/// \param[in] new_buffer_size the new read buffer size | ||
/// \return Status | ||
Status SetBufferSize(int64_t new_buffer_size); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this actually occur using the public APIs? If yes, can we add a test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes actually Peek test tests this. Previously,
PeekPastBufferedBytes
will raise error here.