[beagle] Create lock files with u+rw permission. Upstream Lucene.Net creates lockfiles read-write for user an
- From: Debajyoti Bera <dbera src gnome org>
- To: svn-commits-list gnome org
- Subject: [beagle] Create lock files with u+rw permission. Upstream Lucene.Net creates lockfiles read-write for user an
- Date: Sat, 23 May 2009 10:57:25 -0400 (EDT)
commit 8590dcd1cd7533226a9091ae0d1f039415f22cf5
Author: D Bera <dbera web gmail com>
Date: Sat May 23 10:53:08 2009 -0400
Create lock files with u+rw permission. Upstream Lucene.Net creates lockfiles read-write for user and I do not see any potential problem in creating lockfiles with write permission. This will fix the problem of purging the index if a stale lockfile is found (.Net does not allow deletion of readonly files).
---
.../Lucene.Net/Store/SimpleFSLockFactory.cs | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/beagle/beagled/Lucene.Net/Store/SimpleFSLockFactory.cs b/beagle/beagled/Lucene.Net/Store/SimpleFSLockFactory.cs
index 7169b14..c9ca05a 100644
--- a/beagle/beagled/Lucene.Net/Store/SimpleFSLockFactory.cs
+++ b/beagle/beagled/Lucene.Net/Store/SimpleFSLockFactory.cs
@@ -196,7 +196,8 @@ namespace Lucene.Net.Store
Mono.Unix.Native.OpenFlags.O_RDWR |
Mono.Unix.Native.OpenFlags.O_CREAT |
Mono.Unix.Native.OpenFlags.O_EXCL,
- Mono.Unix.Native.FilePermissions.S_IRUSR);
+ Mono.Unix.Native.FilePermissions.S_IRUSR |
+ Mono.Unix.Native.FilePermissions.S_IWUSR);
if (fd == -1) {
Mono.Unix.Native.Errno error = Mono.Unix.Native.Stdlib.GetLastError ();
if (error == Mono.Unix.Native.Errno.ENOSPC)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]