HHH-7127 Fix query cache evictAll in single node
This commit is contained in:
parent
a12f50c870
commit
3449752493
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue