Author: mircea.markus
Date: 2007-10-26 08:59:26 -0400 (Fri, 26 Oct 2007)
New Revision: 4692
Modified:
core/trunk/src/main/java/org/jboss/cache/RegionManager.java
Log:
marked a node as being ative only after state transfer took place
Modified: core/trunk/src/main/java/org/jboss/cache/RegionManager.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/RegionManager.java 2007-10-26 12:15:22 UTC
(rev 4691)
+++ core/trunk/src/main/java/org/jboss/cache/RegionManager.java 2007-10-26 12:59:26 UTC
(rev 4692)
@@ -295,24 +295,23 @@
else
{
//r.activate();
- r.setActive(true);
- // FIXME - persistent state transfer counts too!
if (cache.getConfiguration().isFetchInMemoryState())
{
activateRegion(r.getFqn(), suppressRegionNotEmptyException);
}
+ r.setActive(true);
}
}
else if (defaultInactive)
{
// "Active" region is not the default, so create a region
r = getRegion(fqn, true);
- r.setActive(true);
// FIXME - persistent state transfer counts too!
if (cache.getConfiguration().isFetchInMemoryState())
{
activateRegion(r.getFqn(), suppressRegionNotEmptyException);
}
+ r.setActive(true);
}
}
catch (RuntimeException re)
Show replies by date