AnonSec Shell
Server IP : 185.86.78.101  /  Your IP : 216.73.216.124
Web Server : Apache
System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 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 : OFF
Directory :  /www/server/mysql/mysql-test/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /www/server/mysql/mysql-test/t/myisam_row_rpl.test
# Test needs myisam for bug#11940249 
--source include/have_myisam.inc
--source include/force_myisam_default.inc
--source include/have_binlog_format_row.inc
--source include/master-slave.inc

--echo #
--echo # Bug#11940249: RBR: MYISAM TABLE CORRUPTION AFTER FIRST LARGE INSERT
--echo #               ON SLAVE
--echo #

--echo # Must have > 100 rows in the first rpl event (to trigger bulk_insert
--echo # optimization for insert into an empty table, by disable all non-unique
--echo # indexes and recreate them afterwards.)
--echo # and then it must be a second rpl event for the same insert (i.e.
--echo # during the same lock).
--echo # Note that --binlog-row-event-max-size=1024 is set in the .opt files
--echo # to enforce the default size.

CREATE TABLE tmp (a VARCHAR(10), b INT) ENGINE=Memory;
INSERT INTO tmp VALUES ('aZa', 1), ('zAz', 2), ('M', 3);
# 6 rows
INSERT INTO tmp SELECT * FROM tmp;
# 12 rows
INSERT INTO tmp SELECT * FROM tmp;
# 24
INSERT INTO tmp SELECT * FROM tmp;
# 48
INSERT INTO tmp SELECT * FROM tmp;
# 96
INSERT INTO tmp SELECT * FROM tmp;
# 192 rows
INSERT INTO tmp SELECT * FROM tmp;

CREATE TABLE t
(a VARCHAR(10),
 b INT,
 KEY a (a))
ENGINE = MyISAM;

--let $binlog_file=query_get_value(SHOW MASTER STATUS, File, 1)
--let $binlog_start=query_get_value(SHOW MASTER STATUS, Position, 1)
INSERT INTO t SELECT * FROM tmp;

--sync_slave_with_master
--connection slave
--echo # on slave:
SELECT COUNT(*) FROM t WHERE b > -1;
--connection master
--echo # on master:
--source include/show_binlog_events.inc

RENAME TABLE t to t_2;
RENAME TABLE t_2 to t;

--sync_slave_with_master
--connection slave
--echo # on slave:
SELECT COUNT(*) FROM t WHERE b > -1;
CHECK TABLE t;
REPAIR TABLE t;
SELECT COUNT(*) FROM t WHERE b > -1;
--let $diff_tables= master:t, slave:t
--source include/diff_tables.inc

--connection master
DROP TABLE t, tmp;
--sync_slave_with_master

--source include/rpl_end.inc

Anon7 - 2022
AnonSec Team