Skip to content

Commit

Permalink
Resume buffer_size_ to buffer_->size() call
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleFU committed Oct 24, 2024
1 parent 0a111dc commit aecf05e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/io/buffered.cc
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ class BufferedInputStream::Impl : public BufferedBase {
}

// Increase the buffer size if needed.
if (nbytes > buffer_size_ - buffer_pos_) {
if (nbytes > buffer_->size() - buffer_pos_) {
RETURN_NOT_OK(SetBufferSize(nbytes + buffer_pos_));
DCHECK(buffer_->size() - buffer_pos_ >= nbytes);
}
Expand Down

0 comments on commit aecf05e

Please sign in to comment.