lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENENET-142) NUnit test for Index/TestIndexWriter/TestDiverseDocs
Date Tue, 12 Aug 2008 19:25:44 GMT
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


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.


Mime
View raw message