You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by ck...@apache.org on 2018/01/10 13:25:24 UTC

svn commit: r1820747 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java

Author: ckoell
Date: Wed Jan 10 13:25:24 2018
New Revision: 1820747

URL: http://svn.apache.org/viewvc?rev=1820747&view=rev
Log:
Debug Log

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java?rev=1820747&r1=1820746&r2=1820747&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java (original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java Wed Jan 10 13:25:24 2018
@@ -764,10 +764,11 @@ public abstract class AbstractBundlePers
             throws ItemStateException {
         long time = System.nanoTime();
         NodePropBundle bundle = loadBundle(id);
-        cacheMissDuration.addAndGet(System.nanoTime() - time);
-        cacheMissCounter.incrementAndGet();
+        time = System.nanoTime() - time;
+        cacheMissDuration.addAndGet(time);
         final long timeMs = time / 1000000;
-        log.debug("Loading bundle {} in {}ms", id, timeMs);
+        log.debug("Loaded bundle {} in {}ms", id, timeMs);
+        cacheMissCounter.incrementAndGet();
         if (bundle != null) {
             bundle.markOld();
             bundles.put(id, bundle, bundle.getSize());
@@ -801,10 +802,11 @@ public abstract class AbstractBundlePers
         if (auditLogger.isDebugEnabled()) {
         	auditLogger.debug("{} ({})", bundle.getId(), bundle.getSize());
         }
-        writeDuration.addAndGet(System.nanoTime() - time);
-        writeCounter.incrementAndGet();
+        time = System.nanoTime() - time;
+        writeDuration.addAndGet(time);
         final long timeMs = time / 1000000;
         log.debug("Stored bundle {} in {}ms", bundle.getId(), timeMs);
+        writeCounter.incrementAndGet();
 
         bundle.markOld();