[HHH-5542] (Infinispan region factory uses same cache instance for all timestamp regions)
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@20328 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
df6072d2e5
commit
a4ea233ef8
|
@ -201,8 +201,8 @@ public class InfinispanRegionFactory implements RegionFactory {
|
|||
public TimestampsRegion buildTimestampsRegion(String regionName, Properties properties)
|
||||
throws CacheException {
|
||||
if (log.isDebugEnabled()) log.debug("Building timestamps cache region [" + regionName + "]");
|
||||
String cacheName = typeOverrides.get(TIMESTAMPS_KEY).getCacheName();
|
||||
CacheAdapter cacheAdapter = CacheAdapterImpl.newInstance(manager.getCache(cacheName));
|
||||
Cache cache = getCache(regionName, TIMESTAMPS_KEY, properties);
|
||||
CacheAdapter cacheAdapter = CacheAdapterImpl.newInstance(cache);
|
||||
TimestampsRegionImpl region = new TimestampsRegionImpl(cacheAdapter, regionName, transactionManager, this);
|
||||
region.start();
|
||||
return region;
|
||||
|
|
Loading…
Reference in New Issue