Skip to content

Commit

Permalink
active xa connection rollback fix (#672)
Browse files Browse the repository at this point in the history
  • Loading branch information
smiletrl committed Mar 16, 2024
1 parent 0ca80a0 commit b254466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/datasource/sql/conn_xa.go
Expand Up @@ -257,11 +257,11 @@ func (c *XAConn) start(ctx context.Context) error {
}

func (c *XAConn) end(ctx context.Context, flags int) error {
err := c.termination(c.xaBranchXid.String())
err := c.xaResource.End(ctx, c.xaBranchXid.String(), flags)
if err != nil {
return err
}
err = c.xaResource.End(ctx, c.xaBranchXid.String(), flags)
err = c.termination(c.xaBranchXid.String())
if err != nil {
return err
}
Expand Down

0 comments on commit b254466

Please sign in to comment.