incubator-seata icon indicating copy to clipboard operation
incubator-seata copied to clipboard

feature : TransactionHook support xid parameter

Open Bughue opened this issue 2 years ago • 0 comments

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

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

Bughue avatar Apr 19 '22 09:04 Bughue