Skip to content

Commit 9210675

Browse files
committed
add: skip rollback
1 parent e582517 commit 9210675

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/table/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ func (c *Client) DoTx(ctx context.Context, op table.TxOperation, opts ...table.O
238238
}
239239

240240
defer func() {
241-
if err != nil {
241+
if err != nil && !xerrors.IsOperationError(err) {
242242
_ = tx.Rollback(ctx)
243243
}
244244
}()

0 commit comments

Comments
 (0)