HHH-7127 Fix query cache evictAll in single node

This commit is contained in:
Galder Zamarreño 2012-02-29 17:54:27 +01:00
parent a12f50c870
commit 3449752493
2 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ public class QueryResultsRegionImpl extends BaseTransactionalDataRegion implemen
public void evictAll() throws CacheException { public void evictAll() throws CacheException {
Transaction tx = suspend(); Transaction tx = suspend();
try { try {
invalidateRegion(); // Invalidate the local region and then go remote
cacheAdapter.broadcastEvictAll(); cacheAdapter.broadcastEvictAll();
} finally { } finally {
resume(tx); resume(tx);

View File

@ -45,6 +45,7 @@ public class TimestampsRegionImpl extends BaseGeneralDataRegion implements Times
// TODO Is this a valid operation on a timestamps cache? // TODO Is this a valid operation on a timestamps cache?
Transaction tx = suspend(); Transaction tx = suspend();
try { try {
invalidateRegion(); // Invalidate the local region and then go remote
cacheAdapter.broadcastEvictAll(); cacheAdapter.broadcastEvictAll();
} finally { } finally {
resume(tx); resume(tx);