You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2016/10/11 18:34:49 UTC

[04/47] lucenenet git commit: Fixed bug in Core.Index.IndexWriter - shouldn't be calling WriteLock.Release() here.

Fixed bug in Core.Index.IndexWriter - shouldn't be calling WriteLock.Release() here.


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

Branch: refs/heads/master
Commit: 4ec42c4b56a8882e8718650502a75a37992409ba
Parents: e9f1d92
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Thu Oct 6 23:11:56 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Thu Oct 6 23:11:56 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Index/IndexWriter.cs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4ec42c4b/src/Lucene.Net.Core/Index/IndexWriter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Index/IndexWriter.cs b/src/Lucene.Net.Core/Index/IndexWriter.cs
index 2c759e0..85160bc 100644
--- a/src/Lucene.Net.Core/Index/IndexWriter.cs
+++ b/src/Lucene.Net.Core/Index/IndexWriter.cs
@@ -1266,8 +1266,7 @@ namespace Lucene.Net.Index
 
                 if (WriteLock != null)
                 {
-                    WriteLock.Release(); // release write lock
-                    WriteLock.Dispose();
+                    WriteLock.Dispose(); // release write lock
                     WriteLock = null;
                 }
                 lock (this)