lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r881832 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/LogByteSizeMergePolicy.cs
Date Wed, 18 Nov 2009 16:49:40 GMT
Author: digy
Date: Wed Nov 18 16:49:39 2009
New Revision: 881832

URL: http://svn.apache.org/viewvc?rev=881832&view=rev
Log:
LUCENENET-257 TestCheckIndex.TestDeletedDocs 

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/LogByteSizeMergePolicy.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/LogByteSizeMergePolicy.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Index/LogByteSizeMergePolicy.cs?rev=881832&r1=881831&r2=881832&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/LogByteSizeMergePolicy.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/LogByteSizeMergePolicy.cs Wed Nov 18
16:49:39 2009
@@ -33,12 +33,14 @@
 		/// <summary>Default maximum segment size.  A segment of this size</summary>
 		/// <seealso cref="setMaxMergeMB">
 		/// </seealso>
-		public static readonly double DEFAULT_MAX_MERGE_MB = System.Int64.MaxValue;
+		public static readonly long DEFAULT_MAX_MERGE_MB = System.Int64.MaxValue;
 		
 		public LogByteSizeMergePolicy(IndexWriter writer):base(writer)
 		{
 			minMergeSize = (long) (DEFAULT_MIN_MERGE_MB * 1024 * 1024);
-			maxMergeSize = (long) (DEFAULT_MAX_MERGE_MB * 1024 * 1024);
+            //mgarski - the line below causes an overflow in .NET, resulting in a negative
number...
+			//maxMergeSize = (long) (DEFAULT_MAX_MERGE_MB * 1024 * 1024);
+            maxMergeSize = DEFAULT_MAX_MERGE_MB;
 		}
 		protected internal override long Size(SegmentInfo info)
 		{



Mime
View raw message