[
https://issues.apache.org/jira/browse/LUCENENET-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Digy updated LUCENENET-142:
---------------------------
Attachment: DocumentsWriter.patch
> NUnit test for Index/TestIndexWriter/TestDiverseDocs
> ----------------------------------------------------
>
> Key: LUCENENET-142
> URL: https://issues.apache.org/jira/browse/LUCENENET-142
> Project: Lucene.Net
> Issue Type: Bug
> Environment: Lucene.Net 2.3.1
> Reporter: Digy
> Attachments: DocumentsWriter.patch
>
>
> Bug in DocumentsWriter.ByteBlockPool.Reset() *[Assuming that ThreadClass
> patch is appied]*
> buffers is a two-dim array
> {code}
> public byte[][] buffers = new byte[10][];
> {code}
> and should be cleared as
> {code}
> for (int i = 0; i < bufferUpto; i++)
> // Fully zero fill buffers that we fully used
> Array.Clear(buffers[i], 0, buffers[i].Length); // not like:
> Array.Clear(buffers[i], 0, buffers.Length);
> {code}
> DIGY
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.