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