Skip to content

Commit

Permalink
fix bug (apache#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
luky116 authored and georgehao committed Dec 5, 2022
1 parent 7f14879 commit 050b13d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/datasource/sql/undo/base/undo.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (m *BaseUndoLogManager) InsertUndoLogWithSqlConn(ctx context.Context, recor
if err != nil {
return err
}
_, err = stmt.Exec([]driver.Value{record.BranchID, record.XID, record.Context, record.RollbackInfo, int64(record.LogStatus)})
_, err = stmt.Exec(record.BranchID, record.XID, record.Context, record.RollbackInfo, int64(record.LogStatus))
if err != nil {
return err
}
Expand Down Expand Up @@ -328,7 +328,7 @@ func (m *BaseUndoLogManager) Undo(ctx context.Context, dbType types.DBType, xid
log.Errorf("[Undo] insert undo with global finished fail, err: %v", err)
return err
}
log.Errorf("xid %v branch %v, undo_log added with %v", xid, branchID, undo.UndoLogStatueGlobalFinished)
log.Infof("xid %v branch %v, undo_log added with %v", xid, branchID, undo.UndoLogStatueGlobalFinished)
}

if err = tx.Commit(); err != nil {
Expand Down

0 comments on commit 050b13d

Please sign in to comment.