YuZhangLarry opened a new pull request, #1137: URL: https://github.com/apache/incubator-seata-go/pull/1137
## What this PR does Support XA branch reuse when `autoCommit=true`, so that multiple SQL statements can reuse the same XA branch instead of opening a new branch for every statement. Fixes #904 (busy buffer error when a `SELECT ... FOR UPDATE` is followed by an `UPDATE` in XA mode with `autoCommit=true`). ## Changes - Add `IsAutoCommitXABranch` to distinguish autoCommit-originated XA branches - Introduce a DBResource-scoped XA branch registry for lifecycle and reuse - Track a rollback flag to avoid duplicate XA branch rollback - Skip undo log generation and AT-specific hooks for XA mode in `BuildExecutor` - Handle nil target in `Tx.Rollback` for non-XA modes - Add XA mode test cases for `BuildExecutor` -- 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]
