lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [1/2] lucenenet git commit: Fixing path access denied error on MMappedDir
Date Mon, 29 Dec 2014 10:30:09 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master febdd0ff3 -> cb4bbe094


Fixing path access denied error on MMappedDir


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/6a5ab757
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/6a5ab757
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/6a5ab757

Branch: refs/heads/master
Commit: 6a5ab75700ef5ea330b107fd6be76f5dd8a6500b
Parents: febdd0f
Author: Itamar Syn-Hershko <itamar@code972.com>
Authored: Mon Dec 29 12:29:40 2014 +0200
Committer: Itamar Syn-Hershko <itamar@code972.com>
Committed: Mon Dec 29 12:29:40 2014 +0200

----------------------------------------------------------------------
 src/Lucene.Net.Core/Store/MMapDirectory.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/6a5ab757/src/Lucene.Net.Core/Store/MMapDirectory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Store/MMapDirectory.cs b/src/Lucene.Net.Core/Store/MMapDirectory.cs
index 51b58d8..676be11 100644
--- a/src/Lucene.Net.Core/Store/MMapDirectory.cs
+++ b/src/Lucene.Net.Core/Store/MMapDirectory.cs
@@ -352,7 +352,7 @@ namespace Lucene.Net.Store
              */
 
             if (input.memoryMappedFile == null)
-                input.memoryMappedFile = MemoryMappedFile.CreateFromFile(fc, null, length
== 0 ? 100 : length, MemoryMappedFileAccess.ReadWrite, null, HandleInheritability.None, false);
+                input.memoryMappedFile = MemoryMappedFile.CreateFromFile(fc, null, length
== 0 ? 100 : length, MemoryMappedFileAccess.ReadWrite, null, HandleInheritability.Inheritable,
false);
 
             long bufferStart = 0L;
             for (int bufNr = 0; bufNr < nrBuffers; bufNr++)


Mime
View raw message