pitrou commented on a change in pull request #11535:
URL: https://github.com/apache/arrow/pull/11535#discussion_r741899792



##########
File path: cpp/src/arrow/ipc/message.cc
##########
@@ -290,7 +291,8 @@ Result<std::unique_ptr<Message>> ReadMessage(int64_t 
offset, int32_t metadata_le
                            decoder.next_required_size());
   }
 
-  ARROW_ASSIGN_OR_RAISE(auto metadata, file->ReadAt(offset, metadata_length));
+  int64_t to_read = body_length > 0 ? (metadata_length + body_length) : 
metadata_length;

Review comment:
       Just to be sure, this does take padding into account?




-- 
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