[exo-jcr-commits] exo-jcr SVN: r4567 - in jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl: util/jdbc and 1 other directory.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Jun 30 04:29:43 EDT 2011


Author: tolusha
Date: 2011-06-30 04:29:42 -0400 (Thu, 30 Jun 2011)
New Revision: 4567

Modified:
   jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/config/JDBCConfigurationPersister.java
   jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/util/jdbc/DBInitializer.java
Log:
EXOJCR-1415: no need invoke commit when setAutoCommit mode is true

Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/config/JDBCConfigurationPersister.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/config/JDBCConfigurationPersister.java	2011-06-24 09:31:10 UTC (rev 4566)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/config/JDBCConfigurationPersister.java	2011-06-30 08:29:42 UTC (rev 4567)
@@ -398,7 +398,6 @@
                st.executeUpdate(sql = initSQL);
                st.close();
 
-               con.commit();
                con.close();
 
                // one new conn

Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/util/jdbc/DBInitializer.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/util/jdbc/DBInitializer.java	2011-06-24 09:31:10 UTC (rev 4566)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/util/jdbc/DBInitializer.java	2011-06-30 08:29:42 UTC (rev 4567)
@@ -380,7 +380,6 @@
          }
 
          postInit(connection);
-         connection.commit();
          LOG.info("DB schema of DataSource: '" + containerName + "' initialized succesfully");
       }
       catch (SQLException e)



More information about the exo-jcr-commits mailing list