[exo-jcr-commits] exo-jcr SVN: r5549 - in jcr/branches/1.15.x/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc: optimisation/db and 1 other directory.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Feb 1 04:01:17 EST 2012


Author: andrew.plotnikov
Date: 2012-02-01 04:01:16 -0500 (Wed, 01 Feb 2012)
New Revision: 5549

Modified:
   jcr/branches/1.15.x/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc/db/MultiDbJDBCConnection.java
   jcr/branches/1.15.x/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc/optimisation/db/MultiDbJDBCConnection.java
Log:
EXOJCR-1278: added show approximate progress of background re-indexing job

Modified: jcr/branches/1.15.x/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc/db/MultiDbJDBCConnection.java
===================================================================
--- jcr/branches/1.15.x/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc/db/MultiDbJDBCConnection.java	2012-02-01 08:13:41 UTC (rev 5548)
+++ jcr/branches/1.15.x/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc/db/MultiDbJDBCConnection.java	2012-02-01 09:01:16 UTC (rev 5549)
@@ -610,7 +610,7 @@
    @Override
    protected ResultSet findNodesCount() throws SQLException
    {
-      if (findNodesCount != null)
+      if (findNodesCount == null)
       {
          findNodesCount = dbConnection.prepareStatement(FIND_NODES_COUNT);
       }

Modified: jcr/branches/1.15.x/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc/optimisation/db/MultiDbJDBCConnection.java
===================================================================
--- jcr/branches/1.15.x/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc/optimisation/db/MultiDbJDBCConnection.java	2012-02-01 08:13:41 UTC (rev 5548)
+++ jcr/branches/1.15.x/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc/optimisation/db/MultiDbJDBCConnection.java	2012-02-01 09:01:16 UTC (rev 5549)
@@ -1091,7 +1091,7 @@
    @Override
    protected ResultSet findNodesCount() throws SQLException
    {
-      if (findNodesCount != null)
+      if (findNodesCount == null)
       {
          findNodesCount = dbConnection.prepareStatement(FIND_NODES_COUNT);
       }



More information about the exo-jcr-commits mailing list