tkalkirill commented on code in PR #4822:
URL: https://github.com/apache/ignite-3/pull/4822#discussion_r1867942492


##########
modules/core/src/main/java/org/apache/ignite/internal/util/IgniteStripedReadWriteLock.java:
##########
@@ -106,7 +106,7 @@ public Lock writeLock() {
      * @return {@code true} if the current thread holds the write lock and 
{@code false} otherwise
      */
     public boolean isWriteLockedByCurrentThread() {
-        return locks[locks.length - 1].isWriteLockedByCurrentThread();
+        return locks[curIdx()].isWriteLockedByCurrentThread();

Review Comment:
   I would leave it as is.



-- 
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