[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@13.58.94.173: ~ $
# This test takes long time, so only run it with the --big-test mtr-flag.
--source include/big_test.inc

--source include/have_partition.inc
--source include/have_innodb.inc
--source include/master-slave.inc

--vertical_results

let $engine_type= 'innodb';

set @old_global_binlog_format=  @@global.binlog_format;
set @old_session_binlog_format=  @@session.binlog_format;
SET GLOBAL binlog_format = 'ROW';
SET SESSION binlog_format = 'ROW';
select @@global.binlog_format, @@session.binlog_format;
--echo [on slave]
connection slave;
set @old_global_binlog_format=  @@global.binlog_format;
set @old_session_binlog_format=  @@session.binlog_format;
SET GLOBAL binlog_format = 'ROW';
SET SESSION binlog_format = 'ROW';
select @@global.binlog_format, @@session.binlog_format;
# restart slave so that slave sql thread's binlog format is re-read
# from @@global.binlog_format
--source include/stop_slave.inc
--source include/start_slave.inc
--echo [on master]
connection master;

eval CREATE TABLE t1(id MEDIUMINT NOT NULL AUTO_INCREMENT,
                           dt TIMESTAMP, user CHAR(255), uuidf LONGBLOB,
                           fkid MEDIUMINT, filler VARCHAR(255),
                           PRIMARY KEY(id)) ENGINE=$engine_type;

eval CREATE TABLE t2(id MEDIUMINT NOT NULL AUTO_INCREMENT,
                           dt TIMESTAMP, user CHAR(255), uuidf LONGBLOB,
                           fkid MEDIUMINT, filler VARCHAR(255),
                           PRIMARY KEY(id)) ENGINE=$engine_type
				PARTITION BY KEY(id) partitions 5;

eval CREATE TABLE t3(id MEDIUMINT NOT NULL AUTO_INCREMENT,
                           dt TIMESTAMP, user CHAR(255), uuidf LONGBLOB,
                           fkid MEDIUMINT, filler VARCHAR(255),
                           PRIMARY KEY(id)) ENGINE=$engine_type 
				PARTITION BY RANGE(id) 
                                SUBPARTITION BY hash(id) subpartitions 2
				(PARTITION pa1 values less than (10),
				 PARTITION pa2 values less than (20),
				 PARTITION pa3 values less than (30),
				 PARTITION pa4 values less than (40),
				 PARTITION pa5 values less than (50),
				 PARTITION pa6 values less than (60),
				 PARTITION pa7 values less than (70),
				 PARTITION pa8 values less than (80),
				 PARTITION pa9 values less than (90),
				 PARTITION pa10 values less than (100),
				 PARTITION pa11 values less than MAXVALUE);

######## Create SPs, Functions, Views and Triggers Section ##############

delimiter |;
CREATE PROCEDURE p1()
BEGIN
   DECLARE ins_count INT DEFAULT 1000; 
   DECLARE del_count INT;
   DECLARE cur_user VARCHAR(255);
   DECLARE local_uuid VARCHAR(255);
   DECLARE local_time TIMESTAMP;

   SET local_time= NOW();
   SET cur_user= CURRENT_USER();
   SET local_uuid= UUID();
 
   WHILE ins_count > 0 DO
     INSERT INTO t1 VALUES (NULL, NOW(), USER() , UUID(),
                                   ins_count,'Going to test MBR for MySQL');
     SET ins_count = ins_count - 1;
   END WHILE;
   
   SELECT MAX(id) FROM t1 INTO del_count;
   WHILE del_count > 0 DO
     DELETE FROM t1 WHERE id = del_count;
     SET del_count = del_count - 2;
   END WHILE;
END|   

CREATE PROCEDURE p2()
BEGIN
   DECLARE ins_count INT DEFAULT 1000; 
   DECLARE del_count INT;
   DECLARE cur_user VARCHAR(255);
   DECLARE local_uuid VARCHAR(255);
   DECLARE local_time TIMESTAMP;

   SET local_time= NOW();
   SET cur_user= CURRENT_USER();
   SET local_uuid= UUID();
 
   WHILE ins_count > 0 DO
     INSERT INTO t2 VALUES (NULL, NOW(), USER() , UUID(),
                                   ins_count,'Going to test MBR for MySQL');
     SET ins_count = ins_count - 1;
   END WHILE;
   
   SELECT MAX(id) FROM t2 INTO del_count;
   WHILE del_count > 0 DO
     DELETE FROM t2 WHERE id = del_count;
     SET del_count = del_count - 2;
   END WHILE;
END|   

CREATE PROCEDURE p3()
BEGIN
   DECLARE ins_count INT DEFAULT 1000; 
   DECLARE del_count INT;
   DECLARE cur_user VARCHAR(255);
   DECLARE local_uuid VARCHAR(255);
   DECLARE local_time TIMESTAMP;

   SET local_time= NOW();
   SET cur_user = CURRENT_USER();
   SET local_uuid=UUID();

   WHILE ins_count > 0 DO
     INSERT INTO t3 VALUES (NULL, NOW(), USER(), UUID(),
                                    ins_count,'Going to test MBR for MySQL');
     SET ins_count = ins_count - 1;
   END WHILE;

   SELECT MAX(id) FROM t3 INTO del_count;
   WHILE del_count > 0 DO
     DELETE FROM t3 WHERE id = del_count;
   SET del_count = del_count - 2;
   END WHILE;
END|

delimiter ;|

############ Finish Setup Section ###################


############ Test Section ###################

CALL p1();
SELECT count(*) as "Master regular" FROM t1;
CALL p2();
SELECT count(*) as "Master bykey" FROM t2;
CALL p3();
SELECT count(*) as "Master byrange" FROM t3;

--sync_slave_with_master
connection slave;
show create table t3; 
--source include/check_slave_is_running.inc
SELECT count(*) "Slave norm" FROM t1;
SELECT count(*) "Slave bykey" FROM t2;
SELECT count(*) "Slave byrange" FROM t3;

connection master;
set @@global.binlog_format=  @old_global_binlog_format;
set @@session.binlog_format=  @old_session_binlog_format;
DROP TABLE t1, t2, t3;
DROP PROCEDURE p1;
DROP PROCEDURE p2;
DROP PROCEDURE p3;
--echo [on slave]
sync_slave_with_master;
set @@global.binlog_format=  @old_global_binlog_format;
set @@session.binlog_format=  @old_session_binlog_format;

# End of 5.1 tests
--source include/rpl_end.inc

Filemanager

Name Type Size Permission Actions
disabled.def File 1.37 KB 0644
part_blocked_sql_func_innodb.test File 2 KB 0644
part_blocked_sql_func_myisam.test File 1.96 KB 0644
part_ctype_utf32.test File 1.42 KB 0644
part_supported_sql_func_innodb.test File 2.15 KB 0644
part_supported_sql_func_myisam.test File 1.98 KB 0644
partition-dml-1-1-innodb-modes.test File 387 B 0644
partition-dml-1-1-innodb.test File 305 B 0644
partition-dml-1-1-myisam-modes.test File 266 B 0644
partition-dml-1-1-myisam.test File 184 B 0644
partition-dml-1-10-innodb.test File 102 B 0644
partition-dml-1-10-myisam.test File 69 B 0644
partition-dml-1-11-innodb.test File 306 B 0644
partition-dml-1-11-myisam.test File 185 B 0644
partition-dml-1-2-innodb.test File 101 B 0644
partition-dml-1-2-myisam.test File 68 B 0644
partition-dml-1-3-innodb.test File 101 B 0644
partition-dml-1-4-innodb.test File 101 B 0644
partition-dml-1-5-innodb.test File 101 B 0644
partition-dml-1-6-innodb.test File 101 B 0644
partition-dml-1-7-innodb.test File 101 B 0644
partition-dml-1-8-innodb.test File 101 B 0644
partition-dml-1-9-innodb.test File 217 B 0644
partition-dml-1-9-myisam.test File 184 B 0644
partition_alter1_1_2_innodb.test File 3.7 KB 0644
partition_alter1_1_2_myisam.test File 3.41 KB 0644
partition_alter1_1_innodb.test File 3.61 KB 0644
partition_alter1_1_myisam.test File 3.41 KB 0644
partition_alter1_2_innodb.test File 3.7 KB 0644
partition_alter1_2_myisam.test File 3.41 KB 0644
partition_alter2_1_1_innodb.test File 3.51 KB 0644
partition_alter2_1_2_innodb.test File 3.51 KB 0644
partition_alter2_1_myisam.test File 3.24 KB 0644
partition_alter2_2_1_innodb.test File 3.53 KB 0644
partition_alter2_2_2_innodb.test File 3.51 KB 0644
partition_alter2_2_myisam.test File 3.24 KB 0644
partition_alter3_innodb.test File 3.24 KB 0644
partition_alter3_myisam.test File 3.21 KB 0644
partition_alter4_innodb.test File 3.44 KB 0644
partition_alter4_myisam.test File 3.33 KB 0644
partition_auto_increment_archive.test File 1.88 KB 0644
partition_auto_increment_blackhole.test File 1.77 KB 0644
partition_auto_increment_innodb.test File 1.76 KB 0644
partition_auto_increment_memory.test File 1.73 KB 0644
partition_auto_increment_myisam.test File 1.73 KB 0644
partition_basic_innodb.test File 3.5 KB 0644
partition_basic_myisam.test File 3.17 KB 0644
partition_basic_symlink_innodb.test File 6.5 KB 0644
partition_basic_symlink_myisam.test File 3.57 KB 0644
partition_bit_innodb.test File 2.4 KB 0644
partition_bit_myisam.test File 2.37 KB 0644
partition_char_innodb.test File 2.4 KB 0644
partition_char_myisam.test File 2.37 KB 0644
partition_datetime_innodb.test File 2.27 KB 0644
partition_datetime_myisam.test File 2.24 KB 0644
partition_debug.test File 2.47 KB 0644
partition_debug_innodb-master.opt File 53 B 0644
partition_debug_innodb.test File 3.64 KB 0644
partition_debug_myisam.test File 568 B 0644
partition_debug_sync_innodb-master.opt File 26 B 0644
partition_debug_sync_innodb.test File 2.71 KB 0644
partition_decimal_innodb.test File 2.1 KB 0644
partition_decimal_myisam.test File 2.23 KB 0644
partition_engine_innodb.test File 3.24 KB 0644
partition_engine_myisam.test File 3.14 KB 0644
partition_exch_innodb.test File 242 B 0644
partition_exch_myisam.test File 209 B 0644
partition_exch_myisam_innodb.test File 442 B 0644
partition_exch_qa.test File 209 B 0644
partition_exch_qa_10.test File 1.69 KB 0644
partition_exch_qa_11.test File 844 B 0644
partition_exch_qa_12.test File 6.22 KB 0644
partition_exch_qa_13.test File 212 B 0644
partition_exch_qa_14.test File 2.42 KB 0644
partition_exch_qa_15.test File 800 B 0644
partition_exch_qa_1_innodb.test File 244 B 0644
partition_exch_qa_1_myisam.test File 211 B 0644
partition_exch_qa_2.test File 2.38 KB 0644
partition_exch_qa_3.test File 934 B 0644
partition_exch_qa_4_innodb.test File 244 B 0644
partition_exch_qa_4_myisam.test File 211 B 0644
partition_exch_qa_5_innodb.test File 244 B 0644
partition_exch_qa_5_myisam.test File 211 B 0644
partition_exch_qa_6.test File 2.88 KB 0644
partition_exch_qa_7_innodb.test File 244 B 0644
partition_exch_qa_7_myisam.test File 211 B 0644
partition_exch_qa_8_innodb.test File 244 B 0644
partition_exch_qa_8_myisam.test File 211 B 0644
partition_exchange_archive.test File 293 B 0644
partition_exchange_blackhole.test File 703 B 0644
partition_exchange_innodb.test File 178 B 0644
partition_exchange_memory.test File 145 B 0644
partition_exchange_myisam.test File 145 B 0644
partition_float_innodb.test File 2.14 KB 0644
partition_float_myisam.test File 2.2 KB 0644
partition_innodb_status_file-master.opt File 23 B 0644
partition_innodb_status_file.test File 563 B 0644
partition_int_innodb.test File 2.27 KB 0644
partition_int_myisam.test File 2.41 KB 0644
partition_max_parts_hash_innodb-master.opt File 59 B 0644
partition_max_parts_hash_innodb.test File 1.19 KB 0644
partition_max_parts_hash_myisam-master.opt File 59 B 0644
partition_max_parts_hash_myisam.test File 1.16 KB 0644
partition_max_parts_inv_innodb-master.opt File 59 B 0644
partition_max_parts_inv_innodb.test File 1.19 KB 0644
partition_max_parts_inv_myisam-master.opt File 59 B 0644
partition_max_parts_inv_myisam.test File 1.15 KB 0644
partition_max_parts_key_innodb-master.opt File 59 B 0644
partition_max_parts_key_innodb.test File 1.27 KB 0644
partition_max_parts_key_myisam-master.opt File 59 B 0644
partition_max_parts_key_myisam.test File 1.23 KB 0644
partition_max_parts_list_innodb-master.opt File 59 B 0644
partition_max_parts_list_innodb.test File 1.19 KB 0644
partition_max_parts_list_myisam-master.opt File 59 B 0644
partition_max_parts_list_myisam.test File 1.16 KB 0644
partition_max_parts_range_innodb-master.opt File 59 B 0644
partition_max_parts_range_innodb.test File 1.19 KB 0644
partition_max_parts_range_myisam-master.opt File 59 B 0644
partition_max_parts_range_myisam.test File 1.16 KB 0644
partition_max_sub_parts_key_list_innodb-master.opt File 59 B 0644
partition_max_sub_parts_key_list_innodb.test File 1.28 KB 0644
partition_max_sub_parts_key_list_myisam-master.opt File 59 B 0644
partition_max_sub_parts_key_list_myisam.test File 1.24 KB 0644
partition_max_sub_parts_key_range_innodb-master.opt File 59 B 0644
partition_max_sub_parts_key_range_innodb.test File 1.28 KB 0644
partition_max_sub_parts_key_range_myisam-master.opt File 59 B 0644
partition_max_sub_parts_key_range_myisam.test File 1.24 KB 0644
partition_max_sub_parts_list_innodb-master.opt File 59 B 0644
partition_max_sub_parts_list_innodb.test File 1.44 KB 0644
partition_max_sub_parts_list_myisam-master.opt File 59 B 0644
partition_max_sub_parts_list_myisam.test File 1.16 KB 0644
partition_max_sub_parts_range_innodb-master.opt File 59 B 0644
partition_max_sub_parts_range_innodb.test File 1.36 KB 0644
partition_max_sub_parts_range_myisam-master.opt File 59 B 0644
partition_max_sub_parts_range_myisam.test File 1.16 KB 0644
partition_mgm_lc0_archive.test File 2.01 KB 0644
partition_mgm_lc0_innodb.test File 1.99 KB 0644
partition_mgm_lc0_memory.test File 1.99 KB 0644
partition_mgm_lc0_myisam.test File 1.99 KB 0644
partition_mgm_lc1_archive-master.opt File 27 B 0644
partition_mgm_lc1_archive.test File 1.8 KB 0644
partition_mgm_lc1_innodb-master.opt File 27 B 0644
partition_mgm_lc1_innodb.test File 1.78 KB 0644
partition_mgm_lc1_memory-master.opt File 27 B 0644
partition_mgm_lc1_memory.test File 1.78 KB 0644
partition_mgm_lc1_myisam-master.opt File 27 B 0644
partition_mgm_lc1_myisam.test File 1.78 KB 0644
partition_mgm_lc2_archive-master.opt File 27 B 0644
partition_mgm_lc2_archive.test File 1.8 KB 0644
partition_mgm_lc2_innodb-master.opt File 27 B 0644
partition_mgm_lc2_innodb.test File 1.78 KB 0644
partition_mgm_lc2_memory-master.opt File 27 B 0644
partition_mgm_lc2_memory.test File 1.78 KB 0644
partition_mgm_lc2_myisam-master.opt File 27 B 0644
partition_mgm_lc2_myisam.test File 1.78 KB 0644
partition_recover_myisam-master.opt File 17 B 0644
partition_recover_myisam.test File 1.6 KB 0644
partition_reorganize_innodb.test File 5.76 KB 0644
partition_reorganize_myisam.test File 3.61 KB 0644
partition_repair_myisam.test File 12.45 KB 0644
partition_special_innodb-master.opt File 55 B 0644
partition_special_innodb.test File 7.1 KB 0644
partition_special_myisam.test File 3.12 KB 0644
partition_syntax_innodb.test File 3.25 KB 0644
partition_syntax_myisam.test File 3.14 KB 0644
partition_value_innodb.test File 3.4 KB 0644
partition_value_myisam.test File 3.36 KB 0644
rpl-partition-dml-1-1-innodb.test File 250 B 0644
rpl-partition-dml-1-1-myisam.test File 216 B 0644
rpl_partition.test File 5.26 KB 0644