jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1408131 - in /jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql: SystemARQ.java modify/UpdateEngineWorker.java
Date Sun, 11 Nov 2012 22:05:58 GMT
Author: andy
Date: Sun Nov 11 22:05:57 2012
New Revision: 1408131

URL: http://svn.apache.org/viewvc?rev=1408131&view=rev
Log:
sync on transactional is controled by implementation implementing sync

Modified:
    jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/SystemARQ.java
    jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateEngineWorker.java

Modified: jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/SystemARQ.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/SystemARQ.java?rev=1408131&r1=1408130&r2=1408131&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/SystemARQ.java (original)
+++ jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/SystemARQ.java Sun Nov 11 22:05:57
2012
@@ -32,7 +32,6 @@ import com.hp.hpl.jena.query.Dataset ;
 import com.hp.hpl.jena.rdf.model.Model ;
 import com.hp.hpl.jena.reasoner.InfGraph ;
 import com.hp.hpl.jena.sparql.core.DatasetGraph ;
-import com.hp.hpl.jena.sparql.core.Transactional ;
 import com.hp.hpl.jena.sparql.graph.GraphWrapper ;
 import com.hp.hpl.jena.sparql.mgt.SystemInfo ;
 
@@ -76,8 +75,10 @@ public class SystemARQ
     /** Sync carefully for compound objects*/
     public static void sync(DatasetGraph dataset)
     { 
-        if ( dataset instanceof Transactional )
-            return ;
+        // Let implementation declare Sync and decide what to do
+        // For light-weight, not truely ACID transaction, implementations.
+//        if ( dataset instanceof Transactional )
+//            return ;
         
         if ( dataset instanceof Sync )
         {

Modified: jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateEngineWorker.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateEngineWorker.java?rev=1408131&r1=1408130&r2=1408131&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateEngineWorker.java
(original)
+++ jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateEngineWorker.java
Sun Nov 11 22:05:57 2012
@@ -343,14 +343,10 @@ public class UpdateEngineWorker implemen
             {   
                 System.out.println("=======================================") ;
                 System.out.println(graphStore) ;
-                System.out.println("=======================================") ;
-                System.out.println(dsg) ;
-                System.out.println("=======================================") ;
-                // Debug.
                 List<Binding> x = Iter.toList(bindings) ;
                 System.out.println("==== Bindings") ;
                 Iter.asString(x, "\n") ;
-                System.out.println("====") ;
+                System.out.println("=======================================") ;
                 bindings = Iter.iter(x) ;
             }
             



Mime
View raw message