ascherbakoff commented on code in PR #7799:
URL: https://github.com/apache/ignite-3/pull/7799#discussion_r3062521194
##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/impl/HeapLockManager.java:
##########
@@ -357,16 +398,52 @@ private LockState adjustLockState(LockState state,
LockState v) {
}
}
- private void track(UUID txId, Releasable val) {
+ private void seal(UUID txId) {
+ txMap.compute(txId, (k, v) -> {
+ if (v == null) {
+ return null;
+ }
+
+ v.sealed = true;
+
+ return v;
+ });
+ }
+
+ private boolean sealed(UUID txId) {
+ boolean[] ret = {false};
+ txMap.compute(txId, (k, v) -> {
+ if (v == null) {
+ return null;
+ }
+
+ if (v.sealed) {
+ ret[0] = true;
+ }
+
+ return v;
+ });
Review Comment:
🆗
--
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]