lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r567919 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Store/SimpleFSLockFactory.cs
Date Tue, 21 Aug 2007 02:55:49 GMT
Author: aroush
Date: Mon Aug 20 19:55:49 2007
New Revision: 567919

URL: http://svn.apache.org/viewvc?rev=567919&view=rev
Log:
Fix: LUCENENET-74 "SimpleFSLockFactory can not obtain lock correctly."

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

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Store/SimpleFSLockFactory.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Store/SimpleFSLockFactory.cs?rev=567919&r1=567918&r2=567919&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Store/SimpleFSLockFactory.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Store/SimpleFSLockFactory.cs Mon Aug 20 19:55:49
2007
@@ -157,7 +157,7 @@
 			}
             try
             {
-                System.IO.FileStream createdFile = lockFile.Create();
+                System.IO.FileStream createdFile = new System.IO.FileStream(lockFile.FullName,
System.IO.FileMode.CreateNew);
                 createdFile.Close();
                 return true;
             }



Mime
View raw message