mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-12-24 02:01:42 +08:00
Fixes per Daniel's review
This commit is contained in:
@@ -258,16 +258,15 @@ sub parse_event {
|
||||
User => $curr->[USER],
|
||||
State => $curr->[STATE],
|
||||
Id => $curr->[ID]});
|
||||
if ( !$is_repl_thread ) {
|
||||
if ( $is_repl_thread ) {
|
||||
PTDEBUG &&
|
||||
_d(q{Query has restarted but it's a replication thread, ignoring});
|
||||
}
|
||||
else {
|
||||
PTDEBUG && _d('Query restarted; new query',
|
||||
$query_start, $etime, $prev->[START], $fudge);
|
||||
$new_query = 1;
|
||||
}
|
||||
elsif ( PTDEBUG ) {
|
||||
_d(q'Query has a start time beyond the fudge factor, ',
|
||||
q'but not counting it as a new query because, ',
|
||||
q{it's a replication thread});
|
||||
}
|
||||
}
|
||||
|
||||
if ( $new_query ) {
|
||||
|
||||
Reference in New Issue
Block a user