You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2013/09/26 11:40:27 UTC

svn commit: r1526434 - /jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/solver/QueryIterTDB.java

Author: andy
Date: Thu Sep 26 09:40:26 2013
New Revision: 1526434

URL: http://svn.apache.org/r1526434
Log:
Close input on cancel.  Found in the course of some code review.

Modified:
    jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/solver/QueryIterTDB.java

Modified: jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/solver/QueryIterTDB.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/solver/QueryIterTDB.java?rev=1526434&r1=1526433&r2=1526434&view=diff
==============================================================================
--- jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/solver/QueryIterTDB.java (original)
+++ jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/solver/QueryIterTDB.java Thu Sep 26 09:40:26 2013
@@ -28,7 +28,6 @@ import com.hp.hpl.jena.sparql.engine.ite
 
 public class QueryIterTDB extends QueryIterPlainWrapper
 {
-    // Rename as QueryIterCloseOther?
     final private QueryIterator originalInput ;
     private List<Abortable> killList ;
     
@@ -54,5 +53,7 @@ public class QueryIterTDB extends QueryI
         if ( killList != null )
             for ( Abortable it : killList )
                 it.abort() ;
+        if ( originalInput != null )
+            originalInput.cancel(); 
     }
 }