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 <[email protected]>
Authored: Mon May 8 13:41:05 2017 +0200
Committer: Pieter van Ginkel <[email protected]>
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

Reply via email to