lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [1/3] lucenenet git commit: Made FSDirectory stale files set synchronized.
Date Tue, 09 May 2017 11:57:48 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master a42b1dbb8 -> 483611579


Made FSDirectory stale files set synchronized.


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

Branch: refs/heads/master
Commit: d58157242ba43edf6b0405e265015f6c519663ad
Parents: a42b1db
Author: Pieter van Ginkel <pieter.vanginkel@amcsgroup.com>
Authored: Mon May 8 13:41:05 2017 +0200
Committer: Pieter van Ginkel <pieter.vanginkel@amcsgroup.com>
Committed: Mon May 8 13:41:05 2017 +0200

----------------------------------------------------------------------
 src/Lucene.Net/Store/FSDirectory.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d5815724/src/Lucene.Net/Store/FSDirectory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Store/FSDirectory.cs b/src/Lucene.Net/Store/FSDirectory.cs
index 0330e4c..42c5bfc 100644
--- a/src/Lucene.Net/Store/FSDirectory.cs
+++ b/src/Lucene.Net/Store/FSDirectory.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
 using System.Diagnostics;
 using System.IO;
 using System.Linq;// Used only for WRITE_LOCK_NAME in deprecated create=true case:
+using Lucene.Net.Support;
 
 namespace Lucene.Net.Store
 {
@@ -91,7 +92,7 @@ namespace Lucene.Net.Store
         public const int DEFAULT_READ_CHUNK_SIZE = 8192;
 
         protected readonly DirectoryInfo m_directory; // The underlying filesystem directory
-        protected readonly ISet<string> m_staleFiles = new HashSet<string>();
// Files written, but not yet sync'ed
+        protected readonly ISet<string> m_staleFiles = new ConcurrentHashSet<string>();
// Files written, but not yet sync'ed
 #pragma warning disable 612, 618
         private int chunkSize = DEFAULT_READ_CHUNK_SIZE;
 #pragma warning restore 612, 618


Mime
View raw message