Skip to content

Commit

Permalink
perfschema: make go vet happy. (pingcap#1110)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuyesuifeng authored and shenli committed Apr 18, 2016
1 parent 64546d4 commit 74ffeb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perfschema/statement.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,11 @@ func (ps *perfSchema) updateEventsStmtsCurrent(connID uint64, record []types.Dat
tbl := ps.mTables[TableStmtsCurrent]
handle, ok := ps.stmtHandles[connID]
if !ok {
handle, err := tbl.AddRecord(nil, record)
newHandle, err := tbl.AddRecord(nil, record)
if err != nil {
return errors.Trace(err)
}
ps.stmtHandles[connID] = handle
ps.stmtHandles[connID] = newHandle
return nil
}
err := tbl.UpdateRecord(nil, handle, nil, record, nil)
Expand Down

0 comments on commit 74ffeb8

Please sign in to comment.