jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject [37/44] jena git commit: Correct behavior on Transational::abort
Date Sat, 06 Jan 2018 15:18:01 GMT
Correct behavior on Transational::abort


Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/ccb5abd9
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/ccb5abd9
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/ccb5abd9

Branch: refs/heads/master
Commit: ccb5abd9b61f3e40274383b5aac7168058efdceb
Parents: d78c928
Author: ajs6f <ajs6f@apache.org>
Authored: Sun Dec 31 20:28:26 2017 -0500
Committer: ajs6f <ajs6f@apache.org>
Committed: Fri Jan 5 09:32:55 2018 -0500

----------------------------------------------------------------------
 .../main/java/org/apache/jena/sparql/util/ViewDatasetGraph.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/ccb5abd9/jena-arq/src/main/java/org/apache/jena/sparql/util/ViewDatasetGraph.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/util/ViewDatasetGraph.java b/jena-arq/src/main/java/org/apache/jena/sparql/util/ViewDatasetGraph.java
index 5717ae4..dd095c9 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/util/ViewDatasetGraph.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/util/ViewDatasetGraph.java
@@ -71,7 +71,7 @@ public abstract class ViewDatasetGraph extends Pair.OfSameType<DatasetGraph>
imp
 
     @Override
     public void abort() {
-        end();
+        forEach(DatasetGraph::abort);
     }
 
     @Override
@@ -193,7 +193,7 @@ public abstract class ViewDatasetGraph extends Pair.OfSameType<DatasetGraph>
imp
 
     @Override
     public boolean supportsTransactionAbort() {
-        return false;
+        return both(DatasetGraph::supportsTransactionAbort);
     }
 
     @Override


Mime
View raw message