lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r567905 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Store/FSDirectory.cs
Date Tue, 21 Aug 2007 01:59:56 GMT
Author: aroush
Date: Mon Aug 20 18:59:56 2007
New Revision: 567905

URL: http://svn.apache.org/viewvc?rev=567905&view=rev
Log:
Fix: LUCENENET-69 "FSIndexInput.isFDValid() not ported correctly"

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Store/FSDirectory.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Store/FSDirectory.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Store/FSDirectory.cs?rev=567905&r1=567904&r2=567905&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Store/FSDirectory.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Store/FSDirectory.cs Mon Aug 20 18:59:56
2007
@@ -706,7 +706,7 @@
 		/// </summary>
 		public virtual bool IsFDValid()
 		{
-			return true; // return file.getFD().valid();    // {{Aroush-2.1 in .NET, how do we do
this?
+			return (file.BaseStream != null);
 		}
 		
 		private class Descriptor : System.IO.BinaryReader



Mime
View raw message