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

Fix KILL to try to kill by the query ID instead of connID #629

Merged
merged 1 commit into from
Mar 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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