lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [04/47] lucenenet git commit: Fixed bug in Core.Index.IndexWriter - shouldn't be calling WriteLock.Release() here.
Date Tue, 11 Oct 2016 18:34:49 GMT
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 <shad@shadstorhaug.com>
Authored: Thu Oct 6 23:11:56 2016 +0700
Committer: Shad Storhaug <shad@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)


Mime
View raw message