incubator-seata
incubator-seata copied to clipboard
feature : TransactionHook support xid parameter
- [ ] I have registered the PR changes.
Ⅰ. Describe what this PR did
为TransactionHook接口新增参数,目前只有xid,本来想把GlobalTransaction和TransactionInfo都传进去的,但TransactionInfo里面信息现在利用率比较低(方法拿到这个参数后里面也没有很多关键信息),而GlobalTransaction传给hook的话权限过大,用户有可能会对transaction进行更改,感觉还是谨慎开放的好
Ⅱ. Does this pull request fix one issue?
fix https://github.com/seata/seata/issues/4554