mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-04 11:37:16 +00:00
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:
@@ -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
|
||||
},
|
||||
},
|
||||
{
|
||||
|
@@ -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();
|
||||
}
|
||||
|
||||
# #######################################################################
|
||||
|
Reference in New Issue
Block a user