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

Commit 98d93bb

Browse files
ps_setup_disable_thread always disabled the current thread and was ignoring the connection id given as an argument
1 parent 4fdc2f3 commit 98d93bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

procedures/ps_setup_disable_thread.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ CREATE DEFINER='root'@'localhost' PROCEDURE ps_setup_disable_thread (
6060
BEGIN
6161
UPDATE performance_schema.threads
6262
SET instrumented = 'NO'
63-
WHERE processlist_id = CONNECTION_ID();
63+
WHERE processlist_id = in_connection_id;
6464

6565
SELECT CONCAT('Disabled ', @rows := ROW_COUNT(), ' thread', IF(@rows != 1, 's', '')) AS summary;
6666
END$$

0 commit comments

Comments
 (0)