~percona-toolkit-dev/percona-toolkit/fix-pt-osc-tbl-charset-bug-1171653

« back to all changes in this revision

Viewing changes to bin/pt-heartbeat

Merge pt-heartbeat-utc-bug-1163372-2.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5119
5119
         $sth->finish();
5120
5120
         return ($delay, $hostname, $pk_val);
5121
5121
      };
 
5122
 
 
5123
      # https://bugs.launchpad.net/percona-toolkit/+bug/1163372
 
5124
      # "pt-heartbeat --utc --check always returns 0"
 
5125
      if ( $utc ) {
 
5126
         my $sql = "SET time_zone='+0:00'";
 
5127
         PTDEBUG && _d($sql);
 
5128
         $dbh->do($sql);
 
5129
      }
5122
5130
   }
5123
5131
 
5124
5132
   # Do a little check just to make sure the table is there, so there's one last