mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-07 21:09:14 +00:00
SET time_zone='+0:00' when --utc is used. Fix another test that was a false-positive, revealed by this fix. Rename bugs.t to utc.t because it only has --utc tests.
This commit is contained in:
@@ -5119,6 +5119,14 @@ sub main {
|
||||
$sth->finish();
|
||||
return ($delay, $hostname, $pk_val);
|
||||
};
|
||||
|
||||
# https://bugs.launchpad.net/percona-toolkit/+bug/1163372
|
||||
# "pt-heartbeat --utc --check always returns 0"
|
||||
if ( $utc ) {
|
||||
my $sql = "SET time_zone='+0:00'";
|
||||
PTDEBUG && _d($sql);
|
||||
$dbh->do($sql);
|
||||
}
|
||||
}
|
||||
|
||||
# Do a little check just to make sure the table is there, so there's one last
|
||||
|
Reference in New Issue
Block a user