Fixes per Daniel's review

This commit is contained in:
Brian Fraser
2013-04-16 13:01:30 -03:00
parent d8a3d217ef
commit bd37cb252f
3 changed files with 38 additions and 19 deletions

View File

@@ -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 ) {