PT-2340 - Support MySQL 8.4

- Adjusted tools and tests which fail due to fixed update-modules command
- Adjsted t/pt-table-checksum/basics.t test for 8.0
This commit is contained in:
Sveta Smirnova
2024-11-13 21:23:39 +03:00
parent bb66ab0845
commit 8b802722db
18 changed files with 67 additions and 48 deletions

View File

@@ -3445,7 +3445,7 @@ sub get_rules {
code => sub {
my ( %args ) = @_;
return _var_eq($args{variables}->{innodb_buffer_pool_size},
128 * 1_048_576); # 10M
128 * 1_048_576); # 128M
},
},
{
@@ -3502,7 +3502,7 @@ sub get_rules {
code => sub {
my ( %args ) = @_;
return _var_gt($args{variables}->{innodb_log_buffer_size},
64 * 1_048_576); # 16M
64 * 1_048_576); # 64M
},
},
{
@@ -3510,7 +3510,7 @@ sub get_rules {
code => sub {
my ( %args ) = @_;
return _var_eq($args{variables}->{innodb_log_file_size},
48 * 1_048_576); # 5M
48 * 1_048_576); # 48M
},
},
{

View File

@@ -2756,12 +2756,15 @@ sub main {
# If --pid, check it first since we'll die if it already exits.
# ########################################################################
my $daemon;
if ( $o->get('pid') ) {
if ( my $pid_file = $o->get('pid') ) {
# We're not daemoninzing, it just handles PID stuff. Keep $daemon
# in the the scope of main() because when it's destroyed it automatically
# removes the PID file.
$daemon = new Daemon(o=>$o);
$daemon->make_PID_file();
$daemon = new Daemon(
pid_file => $pid_file,
daemonize => 0,
);
$daemon->run();
}
# #######################################################################