lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slomb...@apache.org
Subject [Lucene.Net] svn commit: r1082487 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/DocumentsWriter.cs
Date Thu, 17 Mar 2011 13:45:27 GMT
Author: slombard
Date: Thu Mar 17 13:45:27 2011
New Revision: 1082487

URL: http://svn.apache.org/viewvc?rev=1082487&view=rev
Log:
[LUCENENET-399] Fixed Assert Exceptions where used memory was higher then allocated

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/DocumentsWriter.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/DocumentsWriter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Index/DocumentsWriter.cs?rev=1082487&r1=1082486&r2=1082487&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/DocumentsWriter.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/DocumentsWriter.cs Thu Mar 17 13:45:27
2011
@@ -1921,7 +1921,7 @@ namespace Lucene.Net.Index
                             // Remove upwards of 32 blocks (each block is 1K)
                             for (int i = 0; i < 32; ++i)
                             {
-                                perDocAllocator.freeByteBlocks.Remove(perDocAllocator.freeByteBlocks.Count
- 1);
+                                perDocAllocator.freeByteBlocks.RemoveAt(perDocAllocator.freeByteBlocks.Count
- 1);
                                 numBytesAlloc -= PER_DOC_BLOCK_SIZE;
                                 if (perDocAllocator.freeByteBlocks.Count == 0)
                                 {



Mime
View raw message