Fixed - hibernate cache shouldn't be cleared on destroy.

pull/1792/head
Nikita Koksharov 6 years ago
parent 46aa0395c3
commit 9aa85bb0c4

@ -93,7 +93,6 @@ public class BaseRegion implements TransactionalDataRegion, GeneralDataRegion {
@Override
public void destroy() throws CacheException {
try {
mapCache.clear();
mapCache.destroy();
} catch (Exception e) {
throw new CacheException(e);

@ -94,7 +94,6 @@ public class BaseRegion implements TransactionalDataRegion, GeneralDataRegion {
@Override
public void destroy() throws CacheException {
try {
mapCache.clear();
mapCache.destroy();
} catch (Exception e) {
throw new CacheException(e);

@ -25,7 +25,6 @@ import org.hibernate.cache.spi.CacheDataDescription;
import org.hibernate.cache.spi.GeneralDataRegion;
import org.hibernate.cache.spi.RegionFactory;
import org.hibernate.cache.spi.TransactionalDataRegion;
import org.hibernate.engine.spi.SessionImplementor;
import org.hibernate.engine.spi.SharedSessionContractImplementor;
import org.redisson.api.RMapCache;
import org.redisson.hibernate.RedissonRegionFactory;
@ -95,7 +94,6 @@ public class BaseRegion implements TransactionalDataRegion, GeneralDataRegion {
@Override
public void destroy() throws CacheException {
try {
mapCache.clear();
mapCache.destroy();
} catch (Exception e) {
throw new CacheException(e);

Loading…
Cancel
Save