You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ar...@apache.org on 2008/07/17 00:23:23 UTC

svn commit: r677448 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/DocumentsWriter.cs

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;