[exo-jcr-commits] exo-jcr SVN: r4158 - in jcr/trunk/exo.jcr.component.core/src: main/java/org/exoplatform/services/jcr/impl/config and 1 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Mar 22 05:17:49 EDT 2011


Author: tolusha
Date: 2011-03-22 05:17:49 -0400 (Tue, 22 Mar 2011)
New Revision: 4158

Modified:
   jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/backup/rdbms/DirectoryRestor.java
   jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/config/JDBCConfigurationPersister.java
   jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/util/TesterConfigurationHelper.java
Log:
EXOJCR-1081:  * JDBCConfigurationPersister can write 1M data for HSQLDB
* Throw Exception if DirectoryResotre failed

Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/backup/rdbms/DirectoryRestor.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/backup/rdbms/DirectoryRestor.java	2011-03-22 09:08:59 UTC (rev 4157)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/backup/rdbms/DirectoryRestor.java	2011-03-22 09:17:49 UTC (rev 4158)
@@ -181,7 +181,7 @@
          }
          catch (IOException e)
          {
-            LOG.error("Can't remove temporary directory " + PrivilegedFileHelper.getAbsolutePath(tmpDir), e);
+            throw new BackupException(e);
          }
       }
 

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-03-22 09:08:59 UTC (rev 4157)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/config/JDBCConfigurationPersister.java	2011-03-22 09:17:49 UTC (rev 4158)
@@ -162,7 +162,7 @@
       if (DBConstants.DB_DIALECT_GENERIC.equalsIgnoreCase(dialect)
          || DBConstants.DB_DIALECT_HSQLDB.equalsIgnoreCase(dialect))
       {
-         binType = "VARBINARY(102400)"; // 100Kb
+         binType = "VARBINARY(1000000)"; // 1Mb
       }
       else if (DBConstants.DB_DIALECT_PGSQL.equalsIgnoreCase(dialect))
       {

Modified: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/util/TesterConfigurationHelper.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/util/TesterConfigurationHelper.java	2011-03-22 09:08:59 UTC (rev 4157)
+++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/util/TesterConfigurationHelper.java	2011-03-22 09:17:49 UTC (rev 4158)
@@ -59,7 +59,7 @@
 {
    private static Log log = ExoLogger.getLogger("exo.jcr.component.core.ConfigurationHelper");
 
-   private static TesterConfigurationHelper instence;
+   private static TesterConfigurationHelper instance;
 
    private TesterConfigurationHelper()
    {
@@ -339,11 +339,11 @@
 
    public static TesterConfigurationHelper getInstence()
    {
-      if (instence == null)
+      if (instance == null)
       {
-         instence = new TesterConfigurationHelper();
+         instance = new TesterConfigurationHelper();
       }
 
-      return instence;
+      return instance;
    }
 }



More information about the exo-jcr-commits mailing list