From 74ffeb8011797e54df37e73d86910db034689a00 Mon Sep 17 00:00:00 2001 From: cuiqiu Date: Mon, 18 Apr 2016 21:38:14 +0800 Subject: [PATCH] perfschema: make go vet happy. (#1110) --- perfschema/statement.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perfschema/statement.go b/perfschema/statement.go index 87aabb579e..96a46fd24f 100644 --- a/perfschema/statement.go +++ b/perfschema/statement.go @@ -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)