Re: Hi, my name is Ubuntu. Can Beagle come out to play.

Sami Haahtinen wrote:
Miguel de Icaza wrote:
A better fix would be to just copy the definition for the Mono.Posix
call that you are missing.

That is a good idea actually, i'll see if it can be done easily.

BAH! that was too easy, now that i re-read the part that implements the locking with posix functions i realized that when that function was rewritten, the original function was first fixed and wrapped with ifdefs. So, here we go, attempt 2 for a patch. This should be a bit safer.

- S
Index: beagled/Lucene.Net/Store/FSDirectory.cs
RCS file: /cvs/gnome/beagle/beagled/Lucene.Net/Store/FSDirectory.cs,v
retrieving revision 1.7
diff -u -r1.7 FSDirectory.cs
--- beagled/Lucene.Net/Store/FSDirectory.cs	18 Mar 2005 04:34:19 -0000	1.7
+++ beagled/Lucene.Net/Store/FSDirectory.cs	2 Apr 2005 18:29:53 -0000
@@ -77,6 +77,7 @@
 				bool obtainedLock = false;
+#if false
 				int fd = (lockFile.FullName,
 								  | Mono.Posix.OpenFlags.O_EXCL,
@@ -90,7 +91,7 @@
-#if false
 					System.IO.FileStream createdFile = lockFile.Create();
@@ -101,7 +102,6 @@
 					// Just fall through
 				Log ("{0} lock {1}", obtainedLock ? "Obtained" : "Could not obtain", lockFile.FullName);
 				return obtainedLock;

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]