From 425019f593e762ffa0c01a17551e68e6cbc3deb9 Mon Sep 17 00:00:00 2001 From: Carlos Salguero Date: Tue, 18 Dec 2018 10:43:33 -0300 Subject: [PATCH] PT-1492 Update doc for pt-kill --- bin/pt-kill | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/bin/pt-kill b/bin/pt-kill index 3e35dee1..2efe3dc6 100755 --- a/bin/pt-kill +++ b/bin/pt-kill @@ -3543,7 +3543,7 @@ sub find { PTDEBUG && _d('Checking query', Dumper($query)); my $matched = 0; - if ( !$find_spec{replication_threads} + if ( !$find_spec{replication_threads} && $ms->is_replication_thread($query) ) { PTDEBUG && _d('Skipping replication thread'); next QUERY; @@ -7604,6 +7604,18 @@ from all classes. The C options specify which actions will be taken. At this step, there are no more classes, just a single list of queries to kill, print, etc. +pt-kill will kill all the queries matching ANY of the specified criteria (logical OR). +For example, using: + + --busy-time 114 --match-command 'Query|Execute' + +will kill all queries having busy-time > 114 C where the command is C or C + +If you want to kill only the queries where C 114> C the command is Query or +Execute, you need to use L<"--kill-busy-commands>: + + --busy-time 114 --kill-busy-commands 'Query|Execute' + =head1 OUTPUT If only L<"--kill"> is given, then there is no output. If only