mirror of https://github.com/apache/lucene.git
LUCENE-3807: increment buffer on overflow
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1291430 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1860439f15
commit
7014621ef6
|
@ -304,7 +304,7 @@ public final class ByteBlockPool {
|
|||
pos = 0;
|
||||
bytes.length -= bytesToCopy;
|
||||
bytes.offset += bytesToCopy;
|
||||
buffer = buffers[bufferIndex];
|
||||
buffer = buffers[++bufferIndex];
|
||||
overflow = overflow - BYTE_BLOCK_SIZE;
|
||||
}
|
||||
} while (true);
|
||||
|
|
Loading…
Reference in New Issue