Skip to content

Commit

Permalink
Merge pull request #8 from deniszh/master
Browse files Browse the repository at this point in the history
relay_log_info_repository variable was introduced only in MySQL 5.6.2
  • Loading branch information
yoshinorim committed Mar 4, 2014
2 parents 238b998 + 935275c commit e569062
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/MHA/SlaveUtil.pm
Expand Up @@ -73,8 +73,11 @@ sub get_log_error_file($) {
sub get_relay_log_info_type {
my $dbh = shift;
my $mysql_version = shift;
my $type;
$mysql_version = get_version($dbh) unless ($mysql_version);
my $type = get_variable( $dbh, Get_Relay_Log_Info_Type_SQL );
if ( MHA::NodeUtil::mysql_version_ge( $mysql_version, "5.6.2" ) ) {
$type = get_variable( $dbh, Get_Relay_Log_Info_Type_SQL );
}
unless (defined($type))
{
$type = "FILE";
Expand Down

0 comments on commit e569062

Please sign in to comment.