Skip to content

Commit

Permalink
IGNITE-22920 Final cleanup of GridDhtTxFinishRequest (#11477)
Browse files Browse the repository at this point in the history
  • Loading branch information
shishkovilja authored Sep 6, 2024
1 parent effb262 commit 2280dea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 212 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ private boolean rollbackLockTransactions(Collection<ClusterNode> nodes) {
tx.xidVersion(),
tx.commitVersion(),
tx.threadId(),
tx.isolation(),
false,
tx.isInvalidate(),
tx.system(),
Expand All @@ -374,7 +373,6 @@ private boolean rollbackLockTransactions(Collection<ClusterNode> nodes) {
tx.completedBase(),
tx.committedVersions(),
tx.rolledbackVersions(),
tx.pendingVersions(),
tx.size(),
tx.taskNameHash(),
tx.activeCachesDeploymentEnabled(),
Expand Down Expand Up @@ -461,7 +459,6 @@ private boolean finish(boolean commit,
tx.xidVersion(),
tx.commitVersion(),
tx.threadId(),
tx.isolation(),
commit,
tx.isInvalidate(),
tx.system(),
Expand All @@ -471,17 +468,13 @@ private boolean finish(boolean commit,
tx.completedBase(),
tx.committedVersions(),
tx.rolledbackVersions(),
tx.pendingVersions(),
tx.size(),
tx.taskNameHash(),
tx.activeCachesDeploymentEnabled(),
null,
false,
false,
commit ? null : cctx.tm().txHandler().filterUpdateCountersForBackupNode(tx, n));

req.writeVersion(tx.writeVersion() != null ? tx.writeVersion() : tx.xidVersion());

try {
if (isNull(cctx.discovery().getAlive(n.id()))) {
log.error("Unable to send message (node left topology): " + n);
Expand Down Expand Up @@ -538,7 +531,6 @@ private boolean finish(boolean commit,
tx.xidVersion(),
tx.commitVersion(),
tx.threadId(),
tx.isolation(),
commit,
tx.isInvalidate(),
tx.system(),
Expand All @@ -548,16 +540,13 @@ private boolean finish(boolean commit,
tx.completedBase(),
tx.committedVersions(),
tx.rolledbackVersions(),
tx.pendingVersions(),
tx.size(),
tx.taskNameHash(),
tx.activeCachesDeploymentEnabled(),
false,
false,
null);

req.writeVersion(tx.writeVersion());

try {
cctx.io().send(nearMapping.primary(), req, tx.ioPolicy());

Expand Down
Loading

0 comments on commit 2280dea

Please sign in to comment.