Author: tolusha
Date: 2011-06-21 07:28:42 -0400 (Tue, 21 Jun 2011)
New Revision: 4553
Modified:
jcr/branches/1.12.x/patch/1.12.10-GA/JCR-1639/JCR-1639.patch
Log:
JCR-1639: patch updated
Modified: jcr/branches/1.12.x/patch/1.12.10-GA/JCR-1639/JCR-1639.patch
===================================================================
--- jcr/branches/1.12.x/patch/1.12.10-GA/JCR-1639/JCR-1639.patch 2011-06-21 11:19:18 UTC
(rev 4552)
+++ jcr/branches/1.12.x/patch/1.12.10-GA/JCR-1639/JCR-1639.patch 2011-06-21 11:28:42 UTC
(rev 4553)
@@ -2,16 +2,22 @@
===================================================================
---
exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc/JDBCStorageConnection.java (revision
4550)
+++
exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc/JDBCStorageConnection.java (working
copy)
-@@ -373,10 +373,9 @@
+@@ -373,12 +373,17 @@
{
closeStatements();
- // If READ-ONLY status back it to READ-WRITE (we assume it was original state)
-- if (readOnly)
-+ if (dbConnection.getTransactionIsolation() >
Connection.TRANSACTION_READ_COMMITTED)
++ // If READ-ONLY status back it to READ-WRITE (we assume it was original state)
+ if (readOnly)
{
-- dbConnection.setReadOnly(true);
-+ dbConnection.rollback();
+ dbConnection.setReadOnly(true);
}
++ if (dbConnection.getTransactionIsolation() >
Connection.TRANSACTION_READ_COMMITTED)
++ {
++ dbConnection.rollback();
++ }
++
dbConnection.close();
+ }
+ catch (SQLException e)
Show replies by date