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
Fix KILL to try to kill by the query ID instead of connID
Signed-off-by: Antonio Jesus Navarro Perez <antnavper@gmail.com>
  • Loading branch information
ajnavarro committed Mar 5, 2019
commit 757429a1fd84da0d2a735f0ce300ee173457d2aa
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy