mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-08 20:24:46 +00:00
HHH-7127 Fix query cache evictAll in single node
This commit is contained in:
parent
a12f50c870
commit
3449752493
@ -37,6 +37,7 @@ public void evict(Object key) throws CacheException {
|
|||||||
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 void evictAll() throws CacheException {
|
|||||||
// 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…
x
Reference in New Issue
Block a user