HHH-8747 evictQueryRegions should evict the default region
This commit is contained in:
parent
67dcb38b91
commit
bd54dbbfc2
|
@ -260,6 +260,8 @@ public class CacheImpl implements CacheImplementor {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void evictQueryRegions() {
|
public void evictQueryRegions() {
|
||||||
|
evictDefaultQueryRegion();
|
||||||
|
|
||||||
if ( CollectionHelper.isEmpty( queryCaches ) ) {
|
if ( CollectionHelper.isEmpty( queryCaches ) ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -268,7 +270,6 @@ public class CacheImpl implements CacheImplementor {
|
||||||
}
|
}
|
||||||
for ( QueryCache queryCache : queryCaches.values() ) {
|
for ( QueryCache queryCache : queryCaches.values() ) {
|
||||||
queryCache.clear();
|
queryCache.clear();
|
||||||
// TODO : cleanup entries in queryCaches + allCacheRegions ?
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue