HHH-5793 - Apply skip cache load optimization to timestamp updates

This commit is contained in:
Galder Zamarreño 2011-01-07 15:44:29 +01:00
parent 35bf5300c3
commit 0a9e201a01
1 changed files with 4 additions and 2 deletions

View File

@ -82,8 +82,10 @@ public class TimestampsRegionImpl extends BaseGeneralDataRegion implements Times
// prevents reads and other updates
Transaction tx = suspend();
try {
// We ensure ASYNC semantics (JBCACHE-1175)
cacheAdapter.withFlags(FlagAdapter.FORCE_ASYNCHRONOUS).put(key, value);
// We ensure ASYNC semantics (JBCACHE-1175) and make sure previous
// value is not loaded from cache store cos it's not needed.
cacheAdapter.withFlags(FlagAdapter.FORCE_ASYNCHRONOUS,
FlagAdapter.SKIP_CACHE_LOAD).put(key, value);
} catch (Exception e) {
throw new CacheException(e);
} finally {