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

Commit a2e63b6

Browse files
committed
Merge pull request #48 from JesperWisborgKrogh/dev/20150223_ps_setup_disable_thread
ps_setup_disable_thread always disabled the current thread and was ignor...
2 parents 4fdc2f3 + 98d93bb commit a2e63b6

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)