This is an automated email from the ASF dual-hosted git repository.

andy pushed a commit to branch jena4
in repository https://gitbox.apache.org/repos/asf/jena.git


The following commit(s) were added to refs/heads/jena4 by this push:
     new b4c9296f18 Fix inverted logic causing GraphTxn to incorrectly attempt 
a nested transaction
b4c9296f18 is described below

commit b4c9296f18b7c63492b333bc46a68800395a131c
Author: Rob Vesse <[email protected]>
AuthorDate: Mon Nov 13 15:20:14 2023 +0000

    Fix inverted logic causing GraphTxn to incorrectly attempt a nested 
transaction
    
    Backports a fixed inverted logic check that was already addressed on main 
onto the jena4 branch
---
 jena-arq/src/main/java/org/apache/jena/sparql/graph/GraphTxn.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/graph/GraphTxn.java 
b/jena-arq/src/main/java/org/apache/jena/sparql/graph/GraphTxn.java
index 8bc508e448..19c90bd6b9 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/graph/GraphTxn.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/graph/GraphTxn.java
@@ -115,7 +115,7 @@ public class GraphTxn extends GraphWrapper implements 
Transactional {
         IteratorTxn(GraphTxn graph, ExtendedIterator<T> base) {
             super(base, true);  // removeDenied.
             this.graph = graph;
-            needIterTxn = graph.getT().isInTransaction();
+            needIterTxn = ! graph.getT().isInTransaction();
             if ( needIterTxn )
                 graph.begin(TxnType.READ);
         }

Reply via email to