funky-eyes commented on code in PR #6706:
URL: https://github.com/apache/incubator-seata/pull/6706#discussion_r1694462859


##########
tcc/src/main/java/org/apache/seata/rm/tcc/TCCResourceManager.java:
##########
@@ -121,6 +122,10 @@ public BranchStatus branchCommit(BranchType branchType, 
String xid, long branchI
             Object[] args = this.getTwoPhaseCommitArgs(tccResource, 
businessActionContext);
             Object ret;
             boolean result;
+            RootContext.bind(xid);

Review Comment:
   二阶段为什么要使用rootcontext?
   Why use rootcontext in Phase 2?



##########
spring/src/main/java/org/apache/seata/spring/annotation/GlobalTransactionScanner.java:
##########
@@ -335,6 +351,161 @@ protected Object wrapIfNecessary(Object bean, String 
beanName, Object cacheKey)
         }
     }
 
+    /**
+     * Add tcc fence advisors to the bean
+     * @param bean bean
+     * @throws Exception
+     */
+    private static void addTccFenceAdvisorsForBean(Object bean) throws 
Exception {

Review Comment:
   为什么要增加这个方法?
   Why add this method?



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to