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

Commit 188b5c9

Browse files
committed
Fix KILL to try to kill by the query ID instead of connID
Signed-off-by: Antonio Jesus Navarro Perez <[email protected]>
1 parent 2ea6781 commit 188b5c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func (h *Handler) handleKill(conn *mysql.Conn, query string) (bool, error) {
177177

178178
if s[1] == "query" {
179179
logrus.Infof("kill query: id %v", id)
180-
h.e.Catalog.KillConnection(uint32(id))
180+
h.e.Catalog.Kill(id)
181181
} else {
182182
logrus.Infof("kill connection: id %v, pid: %v", conn.ConnectionID, id)
183183
h.mu.Lock()

0 commit comments

Comments
 (0)