lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r681523 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/DocumentsWriter.cs
Date Thu, 31 Jul 2008 22:33:24 GMT
Author: aroush
Date: Thu Jul 31 15:33:24 2008
New Revision: 681523

URL: http://svn.apache.org/viewvc?rev=681523&view=rev
Log:
LUCENENET-132 "bug in DocumentsWriter.BalanceRAM()"

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=681523&r1=681522&r2=681523&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 Jul 31 15:33:24
2008
@@ -3842,7 +3842,7 @@
 								numToFree = postingsFreeChunk;
 							else
 								numToFree = postingsFreeCount;
-							Array.Clear(postingsFreeList, postingsFreeCount - numToFree, postingsFreeCount);
+							Array.Clear(postingsFreeList, postingsFreeCount - numToFree, numToFree);
 							postingsFreeCount -= numToFree;
 							postingsAllocCount -= numToFree;
 							numBytesAlloc -= numToFree * POSTING_NUM_BYTE;



Mime
View raw message