ascherbakoff commented on code in PR #7799:
URL: https://github.com/apache/ignite-3/pull/7799#discussion_r3062945027
##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/Lock.java:
##########
@@ -72,6 +72,23 @@ public UUID txId() {
return txId;
}
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ Lock lock = (Lock) o;
+ return Objects.equals(lockKey, lock.lockKey) && lockMode ==
lock.lockMode && Objects.equals(txId, lock.txId);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(lockKey, lockMode, txId);
Review Comment:
No need to change this right now.
These methods are not used on hot path.
--
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]