lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r567890 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/IndexFileDeleter.cs
Date Tue, 21 Aug 2007 00:56:50 GMT
Author: aroush
Date: Mon Aug 20 17:56:49 2007
New Revision: 567890

URL: http://svn.apache.org/viewvc?rev=567890&view=rev
Log:
Fix: LUCENENET-66 "TestMergeAfterCopy fails in IndexFileDeleter"

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

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/IndexFileDeleter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Index/IndexFileDeleter.cs?rev=567890&r1=567889&r2=567890&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/IndexFileDeleter.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/IndexFileDeleter.cs Mon Aug 20 17:56:49
2007
@@ -313,7 +313,10 @@
 			{
 				pending = new System.Collections.Hashtable();
 			}
-			pending.Add(fileName, fileName);
+            if (pending.ContainsKey(fileName) == false)
+            {
+                pending.Add(fileName, fileName);
+            }
 		}
 		
 		internal void  CommitPendingFiles()



Mime
View raw message