From 87d5d400f80bc94a778e7f8ddb686225dee44e2b Mon Sep 17 00:00:00 2001 From: Rulin Tang Date: Sun, 17 Mar 2024 09:56:27 +0800 Subject: [PATCH] fix typo --- pkg/datasource/sql/conn_xa.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/datasource/sql/conn_xa.go b/pkg/datasource/sql/conn_xa.go index 4a588f0f7..4153ebb0f 100644 --- a/pkg/datasource/sql/conn_xa.go +++ b/pkg/datasource/sql/conn_xa.go @@ -201,7 +201,7 @@ func (c *XAConn) createNewTxOnExecIfNeed(ctx context.Context, f func() (types.Ex ret, err := f() // When c.xaActive is false, i.e, when cleanXABranchContext() has been called, it means - // this xa transaction has been terminated(db conn closed)/rollbacked/commited). No need to proceed anymore. + // this xa transaction has been terminated(db conn closed)/rollbacked/committed). No need to proceed anymore. // This could be introduced by a concurrent timeout check located at // pkg/database/sql/xa_resource_manager.go, xaTwoPhaseTimeoutChecker() and // probably other similar async scenarios. @@ -395,7 +395,7 @@ func (c *XAConn) CloseForce() error { } func (c *XAConn) XaCommit(ctx context.Context, xaXid XAXid) error { - // xa tx has been either terminated(db conn closed)/rollbacked/commited already + // xa tx has been either terminated(db conn closed)/rollbacked/committed already if !c.xaActive { return nil } @@ -405,7 +405,7 @@ func (c *XAConn) XaCommit(ctx context.Context, xaXid XAXid) error { } func (c *XAConn) XaRollbackByBranchId(ctx context.Context, xaXid XAXid) error { - // xa tx has been either terminated(db conn closed)/rollbacked/commited already + // xa tx has been either terminated(db conn closed)/rollbacked/committed already if !c.xaActive { return nil } @@ -413,7 +413,7 @@ func (c *XAConn) XaRollbackByBranchId(ctx context.Context, xaXid XAXid) error { } func (c *XAConn) XaRollback(ctx context.Context, xaXid XAXid) error { - // xa tx has been either terminated(db conn closed)/rollbacked/commited already + // xa tx has been either terminated(db conn closed)/rollbacked/committed already if !c.xaActive { return nil }