Evict fixes

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@14105 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Brian Stansberry 2007-10-19 03:13:13 +00:00
parent a0cdfe599e
commit c3718d531b
1 changed files with 3 additions and 1 deletions

View File

@ -71,7 +71,7 @@ public class QueryResultsRegionImpl extends TransactionalDataRegionAdapter imple
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 @@ public class QueryResultsRegionImpl extends TransactionalDataRegionAdapter imple
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 {