Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
Fix KILL to try to kill by the query ID instead of connID
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Jesus Navarro Perez <[email protected]>
  • Loading branch information
ajnavarro committed Mar 5, 2019
1 parent 2ea6781 commit 188b5c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (h *Handler) handleKill(conn *mysql.Conn, query string) (bool, error) {

if s[1] == "query" {
logrus.Infof("kill query: id %v", id)
h.e.Catalog.KillConnection(uint32(id))
h.e.Catalog.Kill(id)
} else {
logrus.Infof("kill connection: id %v, pid: %v", conn.ConnectionID, id)
h.mu.Lock()
Expand Down

0 comments on commit 188b5c9

Please sign in to comment.