[hibernate-commits] Hibernate SVN: r14105 - core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/query.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Thu Oct 18 23:13:13 EDT 2007
Author: bstansberry at jboss.com
Date: 2007-10-18 23:13:13 -0400 (Thu, 18 Oct 2007)
New Revision: 14105
Modified:
core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/query/QueryResultsRegionImpl.java
Log:
Evict fixes
Modified: core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/query/QueryResultsRegionImpl.java
===================================================================
--- core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/query/QueryResultsRegionImpl.java 2007-10-19 02:14:44 UTC (rev 14104)
+++ core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/query/QueryResultsRegionImpl.java 2007-10-19 03:13:13 UTC (rev 14105)
@@ -71,7 +71,7 @@
Option opt = getNonLockingDataVersionOption(false);
if (localOnly)
opt.setCacheModeLocal(true);
- CacheHelper.remove(getCacheInstance(), getRegionFqn(), key, opt);
+ CacheHelper.removeNode(getCacheInstance(), getRegionFqn(), key, opt);
}
public void evictAll() throws CacheException {
@@ -79,6 +79,8 @@
if (localOnly)
opt.setCacheModeLocal(true);
CacheHelper.removeAll(getCacheInstance(), getRegionFqn(), opt);
+ // Restore the region root node
+ CacheHelper.addNode(getCacheInstance(), getRegionFqn(), false, true, null);
}
public Object get(Object key) throws CacheException {
More information about the hibernate-commits
mailing list