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