Author: manik.surtani(a)jboss.com
Date: 2007-10-15 09:53:12 -0400 (Mon, 15 Oct 2007)
New Revision: 4617
Modified:
core/trunk/src/main/java/org/jboss/cache/CacheImpl.java
Log:
Better data loading for gravitation call
Modified: core/trunk/src/main/java/org/jboss/cache/CacheImpl.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/CacheImpl.java 2007-10-13 00:52:26 UTC (rev
4616)
+++ core/trunk/src/main/java/org/jboss/cache/CacheImpl.java 2007-10-15 13:53:12 UTC (rev
4617)
@@ -2941,13 +2941,6 @@
ctx.getOptionOverrides().setSkipDataGravitation(true);
actualNode = get(backupNodeFqn);
ctx.getOptionOverrides().setSkipDataGravitation(false);
-
- if (actualNode != null)
- {
- // make sure we LOAD data for this node!!
- getData(backupNodeFqn);
- break;
- }
}
}
}
@@ -2957,6 +2950,11 @@
{
return GravitateResult.noDataFound();
}
+ else
+ {
+ // make sure we LOAD data for this node!!
+ getData(actualNode.getFqn());
+ }
if (backupNodeFqn == null && searchSubtrees)
{
Show replies by date