Cyrill commented on code in PR #7970:
URL: https://github.com/apache/ignite-3/pull/7970#discussion_r3108947687


##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/impl/HeapLockManager.java:
##########
@@ -914,6 +974,14 @@ private boolean isWaiterReadyToNotify(WaiterImpl waiter, 
boolean skipFail) {
 
             assert intendedLockMode != null : "Intended lock mode is null";
 
+            // Fast path: no incompatible holders — grant immediately.
+            // Conservative for upgrades: the waiter's own mode is in the 
counts, causing a fallthrough to the slow path.
+            if (!hasAnyIncompatibleHolder(intendedLockMode)) {

Review Comment:
   yes



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to