mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-22 11:06:08 +00:00
HHH-9804 Ehcache integration uses a write lock where a read lock is requested in EhcacheTransactionalDataRegion
This commit is contained in:
parent
7308e14fed
commit
4b3a655d49
@ -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 ) {
|
||||
@ -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 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user