You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/04/09 10:01:17 UTC
[GitHub] [servicecomb-pack] WillemJiang commented on a change in pull
request #432: [SCB-836] Update to support the nested SagaStart
WillemJiang commented on a change in pull request #432: [SCB-836] Update to support the nested SagaStart
URL: https://github.com/apache/servicecomb-pack/pull/432#discussion_r273415834
##########
File path: omega/omega-transaction/src/main/java/org/apache/servicecomb/pack/omega/transaction/SagaStartAspect.java
##########
@@ -69,6 +69,9 @@ Object advise(ProceedingJoinPoint joinPoint, SagaStart sagaStart) throws Throwab
}
private void initializeOmegaContext() {
+ if (context.globalTxId() != null) {
+ context.setParentTxId(context.globalTxId());
+ }
Review comment:
I think we should set the parentTxId from the localTxId, as the globalTxId won't be changed.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services