403Webshell
Server IP : 172.67.216.182  /  Your IP : 162.158.189.58
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/binlog/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/binlog/t/binlog_mysqlbinlog_start_stop_slave_server_id.test
# ==== Purpose ====
#
# When mysqlbinlog connects to a running server it uses the client command
# COM_BINLOG_DUMP, and this command has a flag called BINLOG_DUMP_NON_BLOCK
# which instructs the server to stop sending when it reaches the end of the
# binary log.
#
#
# There are two ways provided by the server to set the non-blocking behavior.
# 1) Setting the connection-server-id=0. (this is the default value of
#    connection-server-id)
# 2) Setting BINLOG_DUMP_NON_BLOCK flag
#  --To test this, we set connection-server-id to some value other then zero
#    and not calling stop-never option in mysqlbinlog
#
# ==== Bug and Worklog references ====
#
# BUG##18000079 - binlog_dump_non_block disappeared in mysql 5.6
# - Created the test to verify the bugfix.
#
# ==== Implementation ====

--source include/not_gtid_enabled.inc
# connection-server-id is a debug option. That's why we need include/have_debug.inc
--source include/have_debug.inc

# As it is enough to test with one binlog format.
--source include/have_binlog_format_statement.inc

CREATE TABLE t1 (a INT);
RESET MASTER;

--source extra/binlog_tests/binlog_mysqlbinlog_fill.inc

# Verify Non blocking behaviour with connection-server-id=0
--echo
--echo ==== Remote with to-last-log stop-never connection-server-id=0 ====
--let $extra_options= --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT $file_1
--let $options= --to-last-log --stop-never --connection-server-id=0
--source extra/binlog_tests/mysqlbinlog_start_stop_2.inc

# Verify Non blocking behaviour for BINLOG_DUMP_NON_BLOCK by setting
# connection-server-id=1 and not setting --stop-never
--echo
--echo ==== Remote with connection-server-id= (value other than 0) ====
--let $extra_options= --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT $file_1
--let $options= --to-last-log  --connection-server-id=1
--source extra/binlog_tests/mysqlbinlog_start_stop_2.inc

--echo
--echo ==== clean up ====
DROP TABLE t1;



Youez - 2016 - github.com/yon3zu
LinuXploit