HHH-8747 evictQueryRegions should evict the default region

This commit is contained in:
Brett Meyer 2014-02-04 12:03:59 -05:00
parent 67dcb38b91
commit bd54dbbfc2
1 changed files with 2 additions and 1 deletions

View File

@ -260,6 +260,8 @@ public class CacheImpl implements CacheImplementor {
@Override
public void evictQueryRegions() {
evictDefaultQueryRegion();
if ( CollectionHelper.isEmpty( queryCaches ) ) {
return;
}
@ -268,7 +270,6 @@ public class CacheImpl implements CacheImplementor {
}
for ( QueryCache queryCache : queryCaches.values() ) {
queryCache.clear();
// TODO : cleanup entries in queryCaches + allCacheRegions ?
}
}