nizhikov commented on code in PR #10314:
URL: https://github.com/apache/ignite/pull/10314#discussion_r1028288816


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxManager.java:
##########
@@ -3228,6 +3231,41 @@ private void writeStatistics(IgniteInternalTx tx, 
boolean commited) {
             commited);
     }
 
+    /**
+     * Finds whether this local transaction instance commits first:
+     * - For 2PC transactions the commit order is direct order (from 
originated to primary and backup nodes).
+     * - For 1PC transactions the commit order is reverse order (from backup 
to primary and near nodes).
+     *
+     * @return Whether this transaction instance is first in the commit order.
+     */
+    private boolean firstCommit(IgniteInternalTx tx) {
+        if (log.isDebugEnabled()) {
+            log.debug("`firstCommit` " + tx.nearXidVersion().asIgniteUuid() + 
" " + getClass().getSimpleName()

Review Comment:
   Please, use Ignite log format.



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