Skip to content

Commit

Permalink
HHH-9804 Ehcache integration uses a write lock where a read lock is r…
Browse files Browse the repository at this point in the history
…equested in EhcacheTransactionalDataRegion
  • Loading branch information
Sanne committed May 16, 2015
1 parent 7308e14 commit 4b3a655
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -263,7 +263,7 @@ public final void writeUnlock(Object key) throws CacheException {
*/
public final void readLock(Object key) throws CacheException {
try {
lockProvider.getSyncForKey( key ).lock( LockType.WRITE );
lockProvider.getSyncForKey( key ).lock( LockType.READ );
}
catch (net.sf.ehcache.CacheException e) {
if ( e instanceof NonStopCacheException ) {
Expand All @@ -285,7 +285,7 @@ public final void readLock(Object key) throws CacheException {
*/
public final void readUnlock(Object key) throws CacheException {
try {
lockProvider.getSyncForKey( key ).unlock( LockType.WRITE );
lockProvider.getSyncForKey( key ).unlock( LockType.READ );
}
catch (net.sf.ehcache.CacheException e) {
if ( e instanceof NonStopCacheException ) {
Expand Down

0 comments on commit 4b3a655

Please sign in to comment.