You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ja...@apache.org on 2014/04/04 11:29:42 UTC

[10/15] git commit: minor changes in commit behaviour for nodes

minor changes in commit behaviour for nodes


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

Branch: refs/heads/ldp
Commit: 2c7a3310d708087c6de92c54a8234cf67538c2f4
Parents: 73762dd
Author: Sebastian Schaffert <ss...@apache.org>
Authored: Tue Apr 1 09:44:34 2014 +0200
Committer: Sebastian Schaffert <ss...@apache.org>
Committed: Tue Apr 1 09:44:34 2014 +0200

----------------------------------------------------------------------
 .../java/org/apache/marmotta/kiwi/sail/KiWiValueFactory.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/2c7a3310/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/sail/KiWiValueFactory.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/sail/KiWiValueFactory.java b/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/sail/KiWiValueFactory.java
index a7ceaae..3da6b66 100644
--- a/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/sail/KiWiValueFactory.java
+++ b/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/sail/KiWiValueFactory.java
@@ -84,7 +84,9 @@ public class KiWiValueFactory implements ValueFactory {
 
     protected KiWiConnection aqcuireConnection() {
         try {
-            return store.getPersistence().getConnection();
+            KiWiConnection connection = store.getPersistence().getConnection();
+            connection.setAutoCommit(true);
+            return connection;
         } catch(SQLException ex) {
             log.error("could not acquire database connection", ex);
             throw new RuntimeException(ex);
@@ -93,7 +95,6 @@ public class KiWiValueFactory implements ValueFactory {
 
     protected void releaseConnection(KiWiConnection con) {
         try {
-            con.getJDBCConnection().commit();
             con.close();
         } catch (SQLException ex) {
             log.error("could not release database connection", ex);