mirror of https://github.com/apache/lucene.git
Cancel pending autocommits on DUH2.close()
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@505114 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e61bc593d0
commit
b5a9abd793
|
@ -548,6 +548,11 @@ public class DirectUpdateHandler2 extends UpdateHandler {
|
|||
log.info("closing " + this);
|
||||
iwCommit.lock();
|
||||
try{
|
||||
// cancel any pending operations
|
||||
if( tracker.pending != null ) {
|
||||
tracker.pending.cancel( true );
|
||||
tracker.pending = null;
|
||||
}
|
||||
doDeletions();
|
||||
closeSearcher();
|
||||
closeWriter();
|
||||
|
|
Loading…
Reference in New Issue