lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r677448 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/DocumentsWriter.cs
Date Wed, 16 Jul 2008 22:23:23 GMT
Author: aroush
Date: Wed Jul 16 15:23:21 2008
New Revision: 677448

URL: http://svn.apache.org/viewvc?rev=677448&view=rev
Log:
LUCENENET-117: Bug in Lucene.Net.Index.DocumentsWriter.AppendPostings when compiled in release-mode

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=677448&r1=677447&r2=677448&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 Wed Jul 16 15:23:21
2008
@@ -2471,7 +2471,8 @@
 				prox.Init(field.threadState.postingsPool, p.proxStart, p.proxUpto);
 				
 				// Should always be true
-				System.Diagnostics.Debug.Assert(NextDoc());
+				bool result = NextDoc();
+				System.Diagnostics.Debug.Assert(result);
 				
 				return true;
 			}
@@ -2545,7 +2546,8 @@
 				System.Diagnostics.Debug.Assert(fms.field.fieldInfo == fields [0].fieldInfo);
 				
 				// Should always be true
-				System.Diagnostics.Debug.Assert(fms.NextTerm());
+				bool result = fms.NextTerm();
+				System.Diagnostics.Debug.Assert(result);
 			}
 			
 			int skipInterval = termsOut.skipInterval;



Mime
View raw message