mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-09 12:44:49 +00:00
HHH-8747 evictQueryRegions should evict the default region
This commit is contained in:
parent
518bda7a43
commit
4fd5bc25b9
@ -260,6 +260,8 @@ public void evictQueryRegion(String regionName) {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void evictQueryRegions() {
|
public void evictQueryRegions() {
|
||||||
|
evictDefaultQueryRegion();
|
||||||
|
|
||||||
if ( CollectionHelper.isEmpty( queryCaches ) ) {
|
if ( CollectionHelper.isEmpty( queryCaches ) ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -268,7 +270,6 @@ public void evictQueryRegions() {
|
|||||||
}
|
}
|
||||||
for ( QueryCache queryCache : queryCaches.values() ) {
|
for ( QueryCache queryCache : queryCaches.values() ) {
|
||||||
queryCache.clear();
|
queryCache.clear();
|
||||||
// TODO : cleanup entries in queryCaches + allCacheRegions ?
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user