Skip to content

Commit a19ab67

Browse files
committed
Merge branch '10.3' into 10.4
2 parents 3021b92 + a2f147a commit a19ab67

9 files changed

+1210
-50
lines changed

mysql-test/suite/rpl/include/rpl_drop_create_temp_table.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ if (`SELECT HEX(@commands) = HEX('configure')`)
5858
--eval CREATE TEMPORARY TABLE nt_tmp_xx_1 ( id INT ) ENGINE = MyIsam
5959

6060
#
61-
# Creates a Temporary N-table that is never dropped.
61+
# Creates a Temporary T-table that is never dropped.
6262
#
6363
--eval CREATE TEMPORARY TABLE tt_tmp_xx_1 ( id INT ) ENGINE = Innodb
6464

mysql-test/suite/rpl/include/rpl_drop_create_temp_table.test

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,65 @@ SET @commands= 'B N N-Temp T-SELECT-T-Temp N-Temp Te R';
483483
SET @commands= 'B N N-Temp T-SELECT-T-Temp N-Temp NeT-trig R';
484484
--source suite/rpl/include/rpl_drop_create_temp_table.inc
485485

486+
--echo # > MDEV-26833
487+
--echo # Errored out and rolled back Te statement should not produce any event to binlog
488+
--echo # in the following cases:
489+
490+
SET @sav_var = @@session.binlog_direct_non_transactional_updates;
491+
492+
SET @@session.binlog_direct_non_transactional_updates = ON;
493+
SET @commands= 'B T Drop-Temp-TT-Temp Te C';
494+
--source suite/rpl/include/rpl_drop_create_temp_table.inc
495+
SET @commands= 'Drop-Temp-T-Temp B T Create-T-Temp Te C';
496+
--source suite/rpl/include/rpl_drop_create_temp_table.inc
497+
SET @commands= 'B T Drop-Temp-TN-Temp Te C';
498+
--source suite/rpl/include/rpl_drop_create_temp_table.inc
499+
SET @commands= 'B T N-Temp Te C';
500+
--source suite/rpl/include/rpl_drop_create_temp_table.inc
501+
502+
SET @commands= 'B T Drop-Temp-TT-Temp Te R';
503+
--source suite/rpl/include/rpl_drop_create_temp_table.inc
504+
SET @commands= 'Drop-Temp-T-Temp B T Create-T-Temp Te R';
505+
--source suite/rpl/include/rpl_drop_create_temp_table.inc
506+
SET @commands= 'B T Drop-Temp-TN-Temp Te R';
507+
--source suite/rpl/include/rpl_drop_create_temp_table.inc
508+
SET @commands= 'B T N-Temp Te R';
509+
--source suite/rpl/include/rpl_drop_create_temp_table.inc
510+
511+
--echo # Non-transactional side effects.
512+
SET @commands= 'B T N-Temp Te Ne C';
513+
--source suite/rpl/include/rpl_drop_create_temp_table.inc
514+
SET @commands= 'B T N-Temp Te Ne R';
515+
--source suite/rpl/include/rpl_drop_create_temp_table.inc
516+
517+
SET @@session.binlog_direct_non_transactional_updates = OFF;
518+
SET @commands= 'B T Drop-Temp-TT-Temp Te C';
519+
--source suite/rpl/include/rpl_drop_create_temp_table.inc
520+
SET @commands= 'Drop-Temp-T-Temp B T Create-T-Temp Te C';
521+
--source suite/rpl/include/rpl_drop_create_temp_table.inc
522+
SET @commands= 'B T Drop-Temp-TN-Temp Te C';
523+
--source suite/rpl/include/rpl_drop_create_temp_table.inc
524+
SET @commands= 'B T N-Temp Te C';
525+
--source suite/rpl/include/rpl_drop_create_temp_table.inc
526+
527+
SET @commands= 'B T Drop-Temp-TT-Temp Te R';
528+
--source suite/rpl/include/rpl_drop_create_temp_table.inc
529+
SET @commands= 'Drop-Temp-T-Temp B T Create-T-Temp Te R';
530+
--source suite/rpl/include/rpl_drop_create_temp_table.inc
531+
SET @commands= 'B T Drop-Temp-TN-Temp Te R';
532+
--source suite/rpl/include/rpl_drop_create_temp_table.inc
533+
SET @commands= 'B T N-Temp Te R';
534+
--source suite/rpl/include/rpl_drop_create_temp_table.inc
535+
536+
--echo # Non-transactional side effects.
537+
SET @commands= 'B T N-Temp Te Ne C';
538+
--source suite/rpl/include/rpl_drop_create_temp_table.inc
539+
SET @commands= 'B T N-Temp Te Ne R';
540+
--source suite/rpl/include/rpl_drop_create_temp_table.inc
541+
542+
SET @@session.binlog_direct_non_transactional_updates = @sav_var;
543+
--echo # < MDEV-26833
544+
486545
--echo ###################################################################################
487546
--echo # CHECK CONSISTENCY
488547
--echo ###################################################################################
@@ -495,8 +554,7 @@ if (`select @@session.binlog_format != 'STATEMENT'`)
495554
{
496555
--exec $MYSQL_DUMP --compact --order-by-primary --skip-extended-insert --no-create-info test > $MYSQLD_DATADIR/test-temporary-master.sql
497556
--exec $MYSQL_DUMP_SLAVE --compact --order-by-primary --skip-extended-insert --no-create-info test > $MYSQLD_DATADIR/test-temporary-slave.sql
498-
# uncomment when anders.song@greatopensource.com-20110105052107-zoab0bsf5a6xxk2y from mysql-5.6 is merged
499-
#--diff_files $MYSQLD_DATADIR/test-temporary-master.sql $MYSQLD_DATADIR/test-temporary-slave.sql
557+
--diff_files $MYSQLD_DATADIR/test-temporary-master.sql $MYSQLD_DATADIR/test-temporary-slave.sql
500558
}
501559

502560
--echo #########################################################################

0 commit comments

Comments
 (0)