jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1535777 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentWriter.java
Date Fri, 25 Oct 2013 16:48:41 GMT
Author: jukka
Date: Fri Oct 25 16:48:41 2013
New Revision: 1535777

URL: http://svn.apache.org/r1535777
Log:
OAK-593: Segment-based MK

Use correct segment reference limit

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentWriter.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentWriter.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentWriter.java?rev=1535777&r1=1535776&r2=1535777&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentWriter.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentWriter.java
Fri Oct 25 16:48:41 2013
@@ -171,8 +171,9 @@ public class SegmentWriter {
 
         int alignment = Segment.RECORD_ALIGN_BYTES - 1;
         int alignedSize = (fullSize + alignment) & ~alignment;
+        int segmentReferenceCount = uuids.size() + segmentIds.size();
         if (length + alignedSize > buffer.length
-                || uuids.size() + segmentIds.size() > 0x100) {
+                || segmentReferenceCount > Segment.SEGMENT_REFERENCE_LIMIT) {
             flush();
         }
 



Mime
View raw message