lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [Lucene.Net] svn commit: r1083689 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/IndexWriter.cs
Date Mon, 21 Mar 2011 07:18:49 GMT
Author: digy
Date: Mon Mar 21 07:18:49 2011
New Revision: 1083689

URL: http://svn.apache.org/viewvc?rev=1083689&view=rev
Log:
[LUCENENET-399] Fix for TestIndexWriterReader.TestDeleteFromIndexWriter & TestIndexWriterReader.TestUpdateDocument

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

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/IndexWriter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Index/IndexWriter.cs?rev=1083689&r1=1083688&r2=1083689&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/IndexWriter.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/IndexWriter.cs Mon Mar 21 07:18:49
2011
@@ -6505,6 +6505,8 @@ namespace Lucene.Net.Index
 						
 						if (infoStream != null)
 							Message("startCommit index=" + SegString(segmentInfos) + " changeCount=" + changeCount);
+
+                        readerPool.Commit();
 						
 						// It's possible another flush (that did not close
                         // the open do stores) snuck in after the flush we
@@ -6528,8 +6530,6 @@ namespace Lucene.Net.Index
                             }
                         }
 						
-						toSync = (SegmentInfos) segmentInfos.Clone();
-						
 						if (commitUserData != null)
 							toSync.SetUserData(commitUserData);
 						



Mime
View raw message