mirror of https://github.com/apache/lucene.git
don't call ensureOpen() twice for updateDocument
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1417951 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6be0613c40
commit
ffb1558e91
|
@ -1424,7 +1424,7 @@ public class IndexWriter implements Closeable, TwoPhaseCommit {
|
|||
*/
|
||||
public void updateDocument(Term term, IndexDocument doc) throws IOException {
|
||||
ensureOpen();
|
||||
updateDocument(term, doc, getAnalyzer());
|
||||
updateDocument(term, doc, analyzer);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue