Skip to content

Commit c5ac0ba

Browse files
author
Tobias Hafner
committed
Fix wrong lock type on update
1 parent 0df9acb commit c5ac0ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dbms/src/main/java/org/polypheny/db/transaction/locking/LockableUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public static void updateMapOfDerivedLockables( LockableObject lockableObject, L
9898

9999
private static void updateLockableMapEntry( Lockable lockable, LockType lockType, Map<Lockable, LockType> currentLockables ) {
100100
LockType currentLockType = currentLockables.get( lockable );
101-
if ( currentLockType == null || currentLockType == LockType.EXCLUSIVE ) {
101+
if ( currentLockType == null || lockType == LockType.EXCLUSIVE ) {
102102
currentLockables.put( lockable, lockType );
103103
}
104104
}

0 commit comments

Comments
 (0)