403Webshell
Server IP : 104.21.38.3  /  Your IP : 162.158.189.242
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/server/mysql/src/mysql-test/suite/rpl/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/rpl/t/rpl_kill_alter_event.test
################################################################################
# BUG#26474110 RPL_KILLED_DDL USES A DEBUG POINT NOT EXIST
#
# This test uses a debug_sync point to guarantee that the ALTER EVENT
# is killed just after it updates mysql.event table. And this test verifies the
# statement is binlogged correctly when it is killed.
################################################################################
--source include/have_binlog_format_row.inc
--source include/have_debug_sync.inc
--source include/master-slave.inc

--let $connection_id= `SELECT CONNECTION_ID()`

CREATE EVENT e1
  ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 DAY
  DO SELECT 1;

# Block ALTER EVENT just after it updated event table
--let $statement_connection= master
--let $auxiliary_connection= default
--let $statement= ALTER EVENT e1 ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 2 DAY
--let $sync_point= after_alter_event_updated_event_table
--source include/execute_to_sync_point.inc

# Kill ALTER EVENT
--let $rpl_connection_name= default
--source include/rpl_connection.inc
--replace_result $connection_id CONNECTION_ID
eval KILL QUERY $connection_id;

# ALTER EVENT returns with ER_QUERY_INTERRUPTED
--source include/rpl_connection_master.inc
--error ER_QUERY_INTERRUPTED
reap;

# Verify master and slave have same events
let $rpl_diff_statement= SELECT event_name, event_body, execute_at
                         FROM information_schema.events where event_name like \'e%\'
                         ORDER BY event_name;
--source include/rpl_diff.inc

--connection master
DROP EVENT e1;

--source include/rpl_end.inc

Youez - 2016 - github.com/yon3zu
LinuXploit