Author: manik.surtani(a)jboss.com
Date: 2007-10-23 13:28:44 -0400 (Tue, 23 Oct 2007)
New Revision: 4675
Modified:
core/trunk/src/main/java/org/jboss/cache/CacheImpl.java
Log:
Added more logging + missing break statement!!
Modified: core/trunk/src/main/java/org/jboss/cache/CacheImpl.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/CacheImpl.java 2007-10-23 17:28:23 UTC (rev
4674)
+++ core/trunk/src/main/java/org/jboss/cache/CacheImpl.java 2007-10-23 17:28:44 UTC (rev
4675)
@@ -2950,6 +2950,7 @@
// for now, perform a very simple series of getData calls.
InvocationContext ctx = getInvocationContext();
+ if (log.isTraceEnabled()) log.trace("Caller is asking for " + fqn);
try
{
@@ -2961,10 +2962,12 @@
Node<K, V> actualNode = get(fqn);
ctx.getOptionOverrides().setSkipDataGravitation(false);
+ if (log.isTraceEnabled()) log.trace("In local tree, this is " +
actualNode);
+
Fqn backupNodeFqn = null;
if (actualNode == null && searchSubtrees)
{
-
+ log.trace("Looking at backup trees.");
NodeSPI backupSubtree = findNode(BuddyManager.BUDDY_BACKUP_SUBTREE_FQN);
if (backupSubtree != null)
{
@@ -2982,6 +2985,8 @@
ctx.getOptionOverrides().setSkipDataGravitation(true);
actualNode = get(backupNodeFqn);
ctx.getOptionOverrides().setSkipDataGravitation(false);
+ if (log.isTraceEnabled()) log.trace("Looking for " +
backupNodeFqn + ". Search result: " + actualNode);
+ if (actualNode != null) break;
}
}
}
Show replies by date