Evict fixes
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@14105 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
a0cdfe599e
commit
c3718d531b
|
@ -71,7 +71,7 @@ public class QueryResultsRegionImpl extends TransactionalDataRegionAdapter imple
|
||||||
Option opt = getNonLockingDataVersionOption(false);
|
Option opt = getNonLockingDataVersionOption(false);
|
||||||
if (localOnly)
|
if (localOnly)
|
||||||
opt.setCacheModeLocal(true);
|
opt.setCacheModeLocal(true);
|
||||||
CacheHelper.remove(getCacheInstance(), getRegionFqn(), key, opt);
|
CacheHelper.removeNode(getCacheInstance(), getRegionFqn(), key, opt);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void evictAll() throws CacheException {
|
public void evictAll() throws CacheException {
|
||||||
|
@ -79,6 +79,8 @@ public class QueryResultsRegionImpl extends TransactionalDataRegionAdapter imple
|
||||||
if (localOnly)
|
if (localOnly)
|
||||||
opt.setCacheModeLocal(true);
|
opt.setCacheModeLocal(true);
|
||||||
CacheHelper.removeAll(getCacheInstance(), getRegionFqn(), opt);
|
CacheHelper.removeAll(getCacheInstance(), getRegionFqn(), opt);
|
||||||
|
// Restore the region root node
|
||||||
|
CacheHelper.addNode(getCacheInstance(), getRegionFqn(), false, true, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Object get(Object key) throws CacheException {
|
public Object get(Object key) throws CacheException {
|
||||||
|
|
Loading…
Reference in New Issue