lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r885147 - /incubator/lucene.net/trunk/C#/src/Test/Search/TestTimeLimitingCollector.cs
Date Sat, 28 Nov 2009 21:13:01 GMT
Author: digy
Date: Sat Nov 28 21:13:01 2009
New Revision: 885147

URL: http://svn.apache.org/viewvc?rev=885147&view=rev
Log:
Patch to TestTimeLimitingCollector  as in LUCENENET-301 (TestTimeLimitedCollector.patch)

Modified:
    incubator/lucene.net/trunk/C#/src/Test/Search/TestTimeLimitingCollector.cs

Modified: incubator/lucene.net/trunk/C#/src/Test/Search/TestTimeLimitingCollector.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/TestTimeLimitingCollector.cs?rev=885147&r1=885146&r2=885147&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/TestTimeLimitingCollector.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/TestTimeLimitingCollector.cs Sat Nov 28
21:13:01 2009
@@ -396,6 +396,7 @@
 					}
 				}
 				System.Diagnostics.Debug.Assert(docId >= 0, "base=" + docBase + " doc=" + doc);
+                bits.Length = Math.Max(bits.Length, docId + 1);
 				bits.Set(docId, true);
 				lastDocCollected = docId;
 			}



Mime
View raw message