Open Code-Fight opened 4 days ago
What this PR does:
defer
beginTX
conn.start
err :=
Which issue(s) this PR fixes:
Fixes #709
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
这个问题,能根据 seata-java 那边的描述进行复现吗?
尝试了,不太好复现。那个时机不太好造出来 我参考java的代码,java那边是start的时候没有report,看了下go这边是在beginTx里面,但是 defer在beginTx之后,所以挪上去后,就可以有error的时候 直接report 到TC了
What this PR does:
defer
beforebeginTX
to cover the scenario where a rollback is not reported beforeconn.start
.err :=
useWhich issue(s) this PR fixes:
Fixes #709
Special notes for your reviewer:
Does this PR introduce a user-facing change?: