mirror of https://github.com/apache/lucene.git
- Modified unlock method to have it delete 'commit.lock' with as well.
PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149635 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
62ce310c9e
commit
77139e26a1
|
@ -274,5 +274,6 @@ abstract public class IndexReader {
|
|||
*/
|
||||
public static void unlock(Directory directory) throws IOException {
|
||||
directory.deleteFile("write.lock");
|
||||
directory.deleteFile("commit.lock");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue