From a2102efb868e091970f36e1596139dcbd52c35a1 Mon Sep 17 00:00:00 2001 From: Sveta Smirnova Date: Mon, 7 Oct 2024 15:52:38 +0300 Subject: [PATCH] PT-2340 - Support MySQL 8.4 - s/slave lag/replica lag/ in reports --- bin/pt-archiver | 6 +++--- bin/pt-online-schema-change | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/pt-archiver b/bin/pt-archiver index 4e3d48b7..093b11af 100755 --- a/bin/pt-archiver +++ b/bin/pt-archiver @@ -7285,7 +7285,7 @@ sub main { PTDEBUG && _d('Got another row in this chunk'); } - # Check slave lag and wait if slave is too far behind. + # Check replica lag and wait if slave is too far behind. # Do this check every 100 rows if (@lag_dbh && $lag_count++ % 100 == 0 ) { foreach my $lag_server (@lag_dbh) { @@ -7294,9 +7294,9 @@ sub main { if ( $lag_dbh ) { my $lag = $ms->get_replica_lag($lag_dbh); while ( !defined $lag || $lag > $o->get('max-lag') ) { - PTDEBUG && _d("Sleeping: slave lag for server '$id' is", $lag); + PTDEBUG && _d("Sleeping: replica lag for server '$id' is", $lag); if ($o->got('progress')) { - _d("Sleeping: slave lag for server '$id' is", $lag); + _d("Sleeping: replica lag for server '$id' is", $lag); } sleep($o->get('check-interval')); $lag = $ms->get_replica_lag($lag_dbh); diff --git a/bin/pt-online-schema-change b/bin/pt-online-schema-change index c9a78474..5e05bb17 100755 --- a/bin/pt-online-schema-change +++ b/bin/pt-online-schema-change @@ -9272,7 +9272,7 @@ sub main { } if ( my $dsn = $o->get('check-replica-lag') ) { - PTDEBUG && _d('Will use --check-replica-lag to check for slave lag'); + PTDEBUG && _d('Will use --check-replica-lag to check for replica lag'); my $cxn = $make_cxn->( dsn_string => $o->get('check-replica-lag'), #prev_dsn => $cxn->dsn(),