Details
-
Task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
9.0
-
None
-
New
Description
While reviewing the byte order in lucene index, I found the following code in Lucene90PostingsWriter:
ByteOrder byteOrder = ByteOrder.nativeOrder(); if (byteOrder == ByteOrder.BIG_ENDIAN) { docOut.writeByte((byte) 'B'); } else if (byteOrder == ByteOrder.LITTLE_ENDIAN) { docOut.writeByte((byte) 'L'); } else { throw new Error(); }
Actually this byte is consumed nowhere, as the file is only used via seeking and the offsets are just 1 larger. We should remove this code.
Why was this added?
Attachments
Issue Links
- links to