lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [1/2] lucenenet git commit: use only LogDocMergePolicy while fixing LogByteSizeMergePolicy
Date Tue, 27 Jan 2015 11:04:43 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master 3ce9d4c6c -> 7e9e30921


use only LogDocMergePolicy while fixing LogByteSizeMergePolicy


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

Branch: refs/heads/master
Commit: 07c8f1c35de15ee9ce0cf2ae9657edc03d4742af
Parents: 3ce9d4c
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Mon Jan 26 22:02:46 2015 -0500
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Mon Jan 26 22:02:46 2015 -0500

----------------------------------------------------------------------
 src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/07c8f1c3/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs b/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
index 564b30a..88bed2c 100644
--- a/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
@@ -974,7 +974,8 @@ namespace Lucene.Net.Util
 
         public static LogMergePolicy NewLogMergePolicy(Random r)
         {
-            LogMergePolicy logmp = r.NextBoolean() ? (LogMergePolicy)new LogDocMergePolicy()
: new LogByteSizeMergePolicy();
+            //LogMergePolicy logmp = r.NextBoolean() ? (LogMergePolicy)new LogDocMergePolicy()
: new LogByteSizeMergePolicy();
+            LogMergePolicy logmp = new LogDocMergePolicy();
             logmp.CalibrateSizeByDeletes = r.NextBoolean();
             if (Rarely(r))
             {


Mime
View raw message