403Webshell
Server IP : 104.21.38.3  /  Your IP : 162.158.170.80
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_tablespace.test
--echo #########################################################################
--echo #
--echo # REPLICATION TABLESPACE RELATED TESTS.
--echo #
--echo #########################################################################
--echo #
--echo # Bug#21081898 INNODB: TABLESPACE RELATED DDLS ARE NOT COMMITTING ONGOING
--echo # TRANSACTION
--echo #
--echo # Patch for this bug also fixes Bug#21082728: ASSERT
--echo # `THD->VARIABLES.GTID_NEXT.TYPE != UNDEFINED_GROUP'
--echo # FOR DML+TABLESPACE DDL
--echo #
--echo # #######################################################################

--source include/have_gtid.inc
--source include/master-slave.inc

--connection master
--echo [On MASTER]

--echo # TEST Bug#21082728: Execute CREATE TABLESPACE inside active transaction
--echo # with GTID_NEXT set. Check for proper error code and transaction state
--echo # by verifying table content after issuing a ROLLBACK.
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=INNODB;
SET @saved_gtid_next= @@session.gtid_next;
SET GTID_NEXT='aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1';
BEGIN;
INSERT INTO t1 VALUES (1);
--error ER_CANT_DO_IMPLICIT_COMMIT_IN_TRX_WHEN_GTID_NEXT_IS_SET
CREATE TABLESPACE ts1 ADD DATAFILE './ts1.ibd' ENGINE=INNODB;
ROLLBACK;
SET GTID_NEXT='aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:2';
--echo # Select should return Empty result
SELECT * FROM t1;
--echo # Issue ROLLBACK to release GTID
ROLLBACK;

--echo # TEST Bug#21081898: Execute CREATE TABLESPACE inside active transaction
--echo # with GTID_NEXT=automatic. Check table content for impliciti commit.
SET GTID_NEXT = 'AUTOMATIC';
BEGIN;
INSERT INTO t1 VALUES (1);
CREATE TABLESPACE ts1 ADD DATAFILE './ts1.ibd' ENGINE=INNODB;
ROLLBACK;
--echo # Select should return one row inserted above
SELECT * FROM t1;

--echo # Cleanup
DROP TABLE t1;
DROP TABLESPACE ts1;
SET GTID_NEXT= @saved_gtid_next;
--echo # "STOP SLAVE" and verify that the SQL thread was properly stopped and
--echo # left no gaps.
--source include/rpl_end.inc

Youez - 2016 - github.com/yon3zu
LinuXploit