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: r1083607 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/DirectoryReader.cs
Date Sun, 20 Mar 2011 22:44:18 GMT
Author: digy
Date: Sun Mar 20 22:44:18 2011
New Revision: 1083607

URL: http://svn.apache.org/viewvc?rev=1083607&view=rev
Log:
[LUCENENET-399] Fix for TestIndexReaderReopen.TestReopenOnCommit

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

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/DirectoryReader.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Index/DirectoryReader.cs?rev=1083607&r1=1083606&r2=1083607&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/DirectoryReader.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/DirectoryReader.cs Sun Mar 20 22:44:18
2011
@@ -568,15 +568,7 @@ namespace Lucene.Net.Index
                     }
                 }
 
-                return (IndexReader)new AnonymousFindSegmentsFile(directory, openReadOnly,
this).Run();
-                //DIGY
-                //return (IndexReader) new SegmentInfos.FindSegmentsFile(directory) {
-                //  protected Object doBody(String segmentFileName) throws CorruptIndexException,
IOException {
-                //    SegmentInfos infos = new SegmentInfos();
-                //    infos.read(directory, segmentFileName);
-                //    return doReopen(infos, false, openReadOnly);
-                //  }
-                //}.run(commit);
+                return (IndexReader)new AnonymousFindSegmentsFile(directory, openReadOnly,
this).Run(commit);
             }
         }
 



Mime
View raw message