lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r681531 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentInfos.cs
Date Thu, 31 Jul 2008 22:45:58 GMT
Author: aroush
Date: Thu Jul 31 15:45:57 2008
New Revision: 681531

URL: http://svn.apache.org/viewvc?rev=681531&view=rev
Log:
LUCENENET-138 "IndexReader.IndexExists() always returns false"

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

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentInfos.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Index/SegmentInfos.cs?rev=681531&r1=681530&r2=681531&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentInfos.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentInfos.cs Thu Jul 31 15:45:57
2008
@@ -158,7 +158,7 @@
 			long max = - 1;
 			for (int i = 0; i < files.Length; i++)
 			{
-				System.String file = files[i];
+				System.String file = System.IO.Path.GetFileName(files[i]);
 				if (file.StartsWith(IndexFileNames.SEGMENTS) && !file.Equals(IndexFileNames.SEGMENTS_GEN))
 				{
 					long gen = GenerationFromSegmentsFileName(file);



Mime
View raw message