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:
Mike Klaas 2007-02-09 01:20:13 +00:00
parent e61bc593d0
commit b5a9abd793
1 changed files with 5 additions and 0 deletions

View File

@ -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();