lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sh...@apache.org
Subject svn commit: r1454836 - in /lucene/dev/branches/branch_4x: ./ lucene/ lucene/misc/ lucene/misc/src/java/org/apache/lucene/index/sorter/SortingAtomicReader.java
Date Sun, 10 Mar 2013 11:25:45 GMT
Author: shaie
Date: Sun Mar 10 11:25:45 2013
New Revision: 1454836

URL: http://svn.apache.org/r1454836
Log:
SortingAtomicReader did not grow the arrays consistently

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/lucene/   (props changed)
    lucene/dev/branches/branch_4x/lucene/misc/   (props changed)
    lucene/dev/branches/branch_4x/lucene/misc/src/java/org/apache/lucene/index/sorter/SortingAtomicReader.java

Modified: lucene/dev/branches/branch_4x/lucene/misc/src/java/org/apache/lucene/index/sorter/SortingAtomicReader.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/misc/src/java/org/apache/lucene/index/sorter/SortingAtomicReader.java?rev=1454836&r1=1454835&r2=1454836&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/misc/src/java/org/apache/lucene/index/sorter/SortingAtomicReader.java
(original)
+++ lucene/dev/branches/branch_4x/lucene/misc/src/java/org/apache/lucene/index/sorter/SortingAtomicReader.java
Sun Mar 10 11:25:45 2013
@@ -447,8 +447,8 @@ public class SortingAtomicReader extends
       int i = 0;
       while ((doc = in.nextDoc()) != DocIdSetIterator.NO_MORE_DOCS) {
         if (i == docs.length) {
-          docs = ArrayUtil.grow(docs, i + 1);
-          offsets = ArrayUtil.grow(offsets, i + 1);
+          docs = ArrayUtil.grow(docs, docs.length + 1);
+          offsets = ArrayUtil.grow(offsets, offsets.length + 1);
         }
         docs[i] = old2new[doc];
         offsets[i] = out.getFilePointer();



Mime
View raw message