mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-02-27 02:00:57 +08:00
PT-2340 - Support MySQL 8.4
- Updated modules
This commit is contained in:
@@ -4025,8 +4025,10 @@ sub is_source_of {
|
||||
. $replica_status->{"${source_name}_user"};
|
||||
}
|
||||
|
||||
if ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for ${source_name} to send event' )
|
||||
if ( ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for source to send event' )
|
||||
|| ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for master to send event' ) )
|
||||
{
|
||||
my ( $source_log_name, $source_log_num )
|
||||
= $source_status->{file} =~ m/^(.*?)\.0*([1-9][0-9]*)$/;
|
||||
|
||||
@@ -486,8 +486,10 @@ sub is_source_of {
|
||||
. $replica_status->{"${source_name}_user"};
|
||||
}
|
||||
|
||||
if ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for ${source_name} to send event' )
|
||||
if ( ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for source to send event' )
|
||||
|| ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for master to send event' ) )
|
||||
{
|
||||
my ( $source_log_name, $source_log_num )
|
||||
= $source_status->{file} =~ m/^(.*?)\.0*([1-9][0-9]*)$/;
|
||||
|
||||
@@ -4302,8 +4302,10 @@ sub is_source_of {
|
||||
. $replica_status->{"${source_name}_user"};
|
||||
}
|
||||
|
||||
if ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for ${source_name} to send event' )
|
||||
if ( ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for source to send event' )
|
||||
|| ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for master to send event' ) )
|
||||
{
|
||||
my ( $source_log_name, $source_log_num )
|
||||
= $source_status->{file} =~ m/^(.*?)\.0*([1-9][0-9]*)$/;
|
||||
|
||||
@@ -4590,8 +4590,10 @@ sub is_source_of {
|
||||
. $replica_status->{"${source_name}_user"};
|
||||
}
|
||||
|
||||
if ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for ${source_name} to send event' )
|
||||
if ( ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for source to send event' )
|
||||
|| ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for master to send event' ) )
|
||||
{
|
||||
my ( $source_log_name, $source_log_num )
|
||||
= $source_status->{file} =~ m/^(.*?)\.0*([1-9][0-9]*)$/;
|
||||
|
||||
@@ -10896,8 +10896,10 @@ sub is_source_of {
|
||||
. $replica_status->{"${source_name}_user"};
|
||||
}
|
||||
|
||||
if ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for ${source_name} to send event' )
|
||||
if ( ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for source to send event' )
|
||||
|| ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for master to send event' ) )
|
||||
{
|
||||
my ( $source_log_name, $source_log_num )
|
||||
= $source_status->{file} =~ m/^(.*?)\.0*([1-9][0-9]*)$/;
|
||||
|
||||
@@ -2627,8 +2627,10 @@ sub is_source_of {
|
||||
. $replica_status->{"${source_name}_user"};
|
||||
}
|
||||
|
||||
if ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for ${source_name} to send event' )
|
||||
if ( ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for source to send event' )
|
||||
|| ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for master to send event' ) )
|
||||
{
|
||||
my ( $source_log_name, $source_log_num )
|
||||
= $source_status->{file} =~ m/^(.*?)\.0*([1-9][0-9]*)$/;
|
||||
|
||||
@@ -3038,8 +3038,10 @@ sub is_source_of {
|
||||
. $replica_status->{"${source_name}_user"};
|
||||
}
|
||||
|
||||
if ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for ${source_name} to send event' )
|
||||
if ( ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for source to send event' )
|
||||
|| ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for master to send event' ) )
|
||||
{
|
||||
my ( $source_log_name, $source_log_num )
|
||||
= $source_status->{file} =~ m/^(.*?)\.0*([1-9][0-9]*)$/;
|
||||
|
||||
@@ -5545,8 +5545,10 @@ sub is_source_of {
|
||||
. $replica_status->{"${source_name}_user"};
|
||||
}
|
||||
|
||||
if ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for ${source_name} to send event' )
|
||||
if ( ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for source to send event' )
|
||||
|| ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for master to send event' ) )
|
||||
{
|
||||
my ( $source_log_name, $source_log_num )
|
||||
= $source_status->{file} =~ m/^(.*?)\.0*([1-9][0-9]*)$/;
|
||||
|
||||
@@ -7057,9 +7057,9 @@ sub is_source_of {
|
||||
}
|
||||
|
||||
if ( ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for source to send event' )
|
||||
|| ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for master to send event' ) )
|
||||
eq 'Waiting for source to send event' )
|
||||
|| ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for master to send event' ) )
|
||||
{
|
||||
my ( $source_log_name, $source_log_num )
|
||||
= $source_status->{file} =~ m/^(.*?)\.0*([1-9][0-9]*)$/;
|
||||
|
||||
@@ -453,8 +453,10 @@ sub is_source_of {
|
||||
. $replica_status->{"${source_name}_user"};
|
||||
}
|
||||
|
||||
if ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for ${source_name} to send event' )
|
||||
if ( ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for source to send event' )
|
||||
|| ( ($replica_status->{replica_io_state} || '')
|
||||
eq 'Waiting for master to send event' ) )
|
||||
{
|
||||
# The replica thinks its I/O thread is caught up to the source. Let's
|
||||
# compare and make sure the source and replica are reasonably close to each
|
||||
|
||||
Reference in New Issue
Block a user