rishabhdaim commented on code in PR #2363:
URL: https://github.com/apache/jackrabbit-oak/pull/2363#discussion_r2183161140


##########
oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/DefaultSegmentWriter.java:
##########
@@ -332,7 +331,7 @@ private RecordId writeMapLeaf(int level, 
Collection<MapEntry> entries) throws IO
             requireNonNull(entries);
             int size = entries.size();
             checkIndex(size, MapRecord.MAX_SIZE);
-            checkPositionIndex(level, MapRecord.MAX_NUMBER_OF_LEVELS);
+            checkIndex(level, MapRecord.MAX_NUMBER_OF_LEVELS + 1);

Review Comment:
   nice fix.



-- 
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: oak-dev-unsubscr...@jackrabbit.apache.org

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

Reply via email to