skorotkov commented on code in PR #10178:
URL: https://github.com/apache/ignite/pull/10178#discussion_r946807655


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxAdapter.java:
##########
@@ -603,7 +603,13 @@ protected void uncommit() {
             case RECOVERY_FINISH:
                 FinalizationStatus old = finalizing;
 
-                res = old != FinalizationStatus.USER_FINISH && 
FINALIZING_UPD.compareAndSet(this, old, status);
+                if (old == FinalizationStatus.USER_FINISH)
+                    res = false;
+                else if (old == FinalizationStatus.RECOVERY_FINISH)
+                    res = true;
+                else
+                    res = FINALIZING_UPD.compareAndSet(this, old, status) ||
+                        finalizing == FinalizationStatus.RECOVERY_FINISH;

Review Comment:
   Applied as suggested here.



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