uschindler commented on PR #13196:
URL: https://github.com/apache/lucene/pull/13196#issuecomment-2013348340

   I refactored the code a bit:
   - @jpountz I added the merge context (I checked DirectIODirectory).
   - I retrieve the pageSize to check if a segment is correctly aligned. 
Unfortunately this is mega-stupid. I tend to remove it again (the constant 
`_SC_PAGESIZE` is part of a C `enum` and its value is different in various 
platforms as no fixed value is assigned) and maybe keep a hardcoded page size 
to handle the case. Maybe just check that it is a multiple of 64K (native page 
size is 8K, but may be different), because it is normally only an issue in this 
test....


-- 
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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to