Skip to content

Commit

Permalink
table: refactor the code to check the err (pingcap#13780)
Browse files Browse the repository at this point in the history
  • Loading branch information
rustin-bot authored and sre-bot committed Nov 28, 2019
1 parent 08f0072 commit b1ffba6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions table/tables/tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,9 @@ func (t *tableCommon) AddRecord(ctx sessionctx.Context, r []types.Datum, opts ..
sessVars := ctx.GetSessionVars()

rm, err := t.getRollbackableMemStore(ctx)
if err != nil {
return 0, err
}
var createIdxOpts []table.CreateIdxOptFunc
if len(opts) > 0 {
createIdxOpts = make([]table.CreateIdxOptFunc, 0, len(opts))
Expand Down

0 comments on commit b1ffba6

Please sign in to comment.