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:
Daniel Nichter
2013-04-04 17:18:01 -06:00
parent 6376556c20
commit ed757b6dcd
2 changed files with 9 additions and 1 deletions

View File

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