jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1301397 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/acl/CachingEntryCollector.java
Date Fri, 16 Mar 2012 09:45:00 GMT
Author: reschke
Date: Fri Mar 16 09:44:59 2012
New Revision: 1301397

URL: http://svn.apache.org/viewvc?rev=1301397&view=rev
Log:
JCR-3259: augment logging information around CachingEntryCollector

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/acl/CachingEntryCollector.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/acl/CachingEntryCollector.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/acl/CachingEntryCollector.java?rev=1301397&r1=1301396&r2=1301397&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/acl/CachingEntryCollector.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/acl/CachingEntryCollector.java
Fri Mar 16 09:44:59 2012
@@ -93,6 +93,8 @@ class CachingEntryCollector extends Entr
             if (entries == null) {
                 // fetch entries and update the cache
                 entries = updateCache(node);
+            } else {
+                log.debug("Cache hit for nodeId {}", nodeId);
             }
         }
         return entries;
@@ -110,6 +112,8 @@ class CachingEntryCollector extends Entr
                 // fetch entries and update the cache
                 NodeImpl n = getNodeById(nodeId);
                 entries = updateCache(n);
+            } else {
+                log.debug("Cache hit for nodeId {}", nodeId);
             }
         }
         return entries;
@@ -190,6 +194,7 @@ class CachingEntryCollector extends Entr
                 if ((type & POLICY_ADDED) == POLICY_ADDED) {
                     // clear the complete cache since the nextAcNodeId may
                     // have changed due to the added acl.
+                    log.debug("Policy added, clearing the cache");
                     cache.clear();
                     break; // no need for further processing.
                 } else if ((type & POLICY_REMOVED) == POLICY_REMOVED) {
@@ -209,6 +214,7 @@ class CachingEntryCollector extends Entr
                     cache.remove(nodeId);
                 } else if ((type & MOVE) == MOVE) {
                     // some sort of move operation that may affect the cache
+                    log.debug("Move operation, clearing the cache");
                     cache.clear();
                     break; // no need for further processing.
                 }



Mime
View raw message