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:
Simon Willnauer 2012-02-20 20:25:00 +00:00
parent 1860439f15
commit 7014621ef6
1 changed files with 1 additions and 1 deletions

View File

@ -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);