mapleFU commented on code in PR #37460:
URL: https://github.com/apache/arrow/pull/37460#discussion_r1310238387


##########
cpp/src/arrow/io/buffered.cc:
##########
@@ -373,33 +378,35 @@ class BufferedInputStream::Impl : public BufferedBase {
       return Status::Invalid("Bytes to read must be positive. Received:", 
nbytes);
     }
 
-    if (nbytes < buffer_size_) {
-      // Pre-buffer for small reads
-      RETURN_NOT_OK(BufferIfNeeded());
+    // 1. First consume pre-buffered data.

Review Comment:
   Oh, the `(1)` and `(2.2)` gurantees that, but I forgot to check it in `2.1`. 
Will fix this



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to