lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [4/6] lucenenet git commit: run testpoint outside of debug.assert
Date Sat, 09 May 2015 18:46:28 GMT
run testpoint outside of debug.assert


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/185e3e19
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/185e3e19
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/185e3e19

Branch: refs/heads/master
Commit: 185e3e19350f34a249c0f76d6b0e04118d284800
Parents: 40ea94e
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Fri May 8 16:15:18 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Fri May 8 16:15:18 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.Core/Index/IndexWriter.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/185e3e19/src/Lucene.Net.Core/Index/IndexWriter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Index/IndexWriter.cs b/src/Lucene.Net.Core/Index/IndexWriter.cs
index b4ca4b0..4fce66b 100644
--- a/src/Lucene.Net.Core/Index/IndexWriter.cs
+++ b/src/Lucene.Net.Core/Index/IndexWriter.cs
@@ -2576,7 +2576,8 @@ namespace Lucene.Net.Index
                         infoStream.Message("IW", "rollback: infos=" + SegString(segmentInfos.Segments));
                     }
 
-                    Debug.Assert(TestPoint("rollback before checkpoint"));
+                    var result = TestPoint("rollback before checkpoint");
+                    Debug.Assert(result);
 
                     // Ask deleter to locate unreferenced files & remove
                     // them:


Mime
View raw message