Skip to content

Commit f6c0397

Browse files
Fix one comment
1 parent 2704c14 commit f6c0397

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adapter/avro/src/main/java/org/apache/arrow/adapter/avro/AvroFileReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,13 @@ boolean readBatch() throws IOException {
241241
batchBuffer = decoder.readBytes(batchBuffer);
242242
decoder.readFixed(batchSyncMarker);
243243

244-
// Validate sync marker - mismatch indicates a corrupt file
245244
long batchSize =
246245
zigzagSize(nRows) +
247246
zigzagSize(batchBuffer.remaining()) +
248247
batchBuffer.remaining() +
249248
SYNC_MARKER_SIZE;
250249

250+
// Validate sync marker - mismatch indicates a corrupt file
251251
int validateMarker = BinaryData.compareBytes(
252252
syncMarker, 0, SYNC_MARKER_SIZE,
253253
batchSyncMarker, 0, SYNC_MARKER_SIZE);

0 commit comments

Comments
 (0)