lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r900011 - /lucene/java/trunk/src/java/org/apache/lucene/util/SortedVIntList.java
Date Sat, 16 Jan 2010 18:46:42 GMT
Author: mikemccand
Date: Sat Jan 16 18:46:41 2010
New Revision: 900011

URL: http://svn.apache.org/viewvc?rev=900011&view=rev
Log:
LUCENE-2217: revert

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/util/SortedVIntList.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/util/SortedVIntList.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/util/SortedVIntList.java?rev=900011&r1=900010&r2=900011&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/util/SortedVIntList.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/util/SortedVIntList.java Sat Jan 16 18:46:41
2010
@@ -128,10 +128,8 @@
       }
   
       if ((lastBytePos + MAX_BYTES_PER_INT) > bytes.length) {
-        // Biggest possible int does not fit.
-        // Requires initial size of at least 9,
-        // see SortedVIntList.initBytes() and ArrayUtil.getNextSize()
-        ArrayUtil.getNextSize(bytes.length);
+        // biggest possible int does not fit
+        resizeBytes((bytes.length * 2) + MAX_BYTES_PER_INT);
       }
   
       // See org.apache.lucene.store.IndexOutput.writeVInt()



Mime
View raw message