mirror of https://github.com/apache/lucene.git
Fix initial sizing of MonotonicAppendingLongBuffer.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1503808 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
360452940e
commit
454d269e0d
|
@ -43,7 +43,7 @@ public final class MonotonicAppendingLongBuffer extends AbstractAppendingLongBuf
|
|||
* @param pageSize the size of a single page */
|
||||
public MonotonicAppendingLongBuffer(int initialPageCount, int pageSize) {
|
||||
super(initialPageCount, pageSize);
|
||||
averages = new float[pageSize];
|
||||
averages = new float[initialPageCount];
|
||||
}
|
||||
|
||||
/** Create an {@link MonotonicAppendingLongBuffer} with initialPageCount=16
|
||||
|
|
Loading…
Reference in New Issue