[exo-jcr-commits] exo-jcr SVN: r2681 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/lucene.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Jun 23 03:26:22 EDT 2010


Author: nzamosenchuk
Date: 2010-06-23 03:26:22 -0400 (Wed, 23 Jun 2010)
New Revision: 2681

Modified:
   jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/lucene/MultiIndex.java
Log:
EXOJCR-785: fixing lastFileSystemFlushTime field assigning. 

Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/lucene/MultiIndex.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/lucene/MultiIndex.java	2010-06-22 11:43:00 UTC (rev 2680)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/lucene/MultiIndex.java	2010-06-23 07:26:22 UTC (rev 2681)
@@ -255,6 +255,9 @@
       // this method is run in privileged mode internally
       this.indexNames.read();
 
+      this.lastFileSystemFlushTime = System.currentTimeMillis();
+      this.lastFlushTime = System.currentTimeMillis();
+
       modeHandler.addIndexerIoModeListener(this);
       indexUpdateMonitor.addIndexUpdateMonitorListener(this);
 
@@ -1135,7 +1138,6 @@
          redoLog.clear();
 
          lastFlushTime = System.currentTimeMillis();
-         lastFileSystemFlushTime = System.currentTimeMillis();
       }
 
       // delete obsolete indexes
@@ -1344,6 +1346,7 @@
 
          // create new volatile index
          resetVolatileIndex();
+         lastFileSystemFlushTime = System.currentTimeMillis();
 
          time = System.currentTimeMillis() - time;
          log.debug("Committed in-memory index in " + time + "ms.");



More information about the exo-jcr-commits mailing list