You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2014/11/13 15:44:18 UTC
svn commit: r1639350 - in /lucene/dev/branches/lucene_solr_4_10/lucene:
CHANGES.txt core/src/java/org/apache/lucene/index/IndexWriter.java
Author: mikemccand
Date: Thu Nov 13 14:44:18 2014
New Revision: 1639350
URL: http://svn.apache.org/r1639350
Log:
LUCENE-6060: deprecate IndexWriter.unlock
Modified:
lucene/dev/branches/lucene_solr_4_10/lucene/CHANGES.txt
lucene/dev/branches/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java
Modified: lucene/dev/branches/lucene_solr_4_10/lucene/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_4_10/lucene/CHANGES.txt?rev=1639350&r1=1639349&r2=1639350&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_4_10/lucene/CHANGES.txt (original)
+++ lucene/dev/branches/lucene_solr_4_10/lucene/CHANGES.txt Thu Nov 13 14:44:18 2014
@@ -19,6 +19,9 @@ Bug fixes
the only docs in it had fields that hit non-aborting exceptions
during indexing but also had doc values. (Mike McCandless)
+* LUCENE-6060: Deprecate IndexWriter.unlock (Simon Willnauer, Mike
+ McCandless)
+
======================= Lucene 4.10.2 ======================
Bug fixes
Modified: lucene/dev/branches/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java?rev=1639350&r1=1639349&r2=1639350&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java (original)
+++ lucene/dev/branches/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java Thu Nov 13 14:44:18 2014
@@ -4573,7 +4573,10 @@ public class IndexWriter implements Clos
* Caution: this should only be used by failure recovery code,
* when it is known that no other process nor thread is in fact
* currently accessing this index.
+ *
+ * @deprecated This method is very dangerous and will be removed in Lucene 5.0
*/
+ @Deprecated
public static void unlock(Directory directory) throws IOException {
directory.makeLock(IndexWriter.WRITE_LOCK_NAME).close();
}