mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
ada54101a7
Problem:- Create/drop index was logged into binlog. Goal:- Operation on temporary table should not be binlog when binlog format is row. Solution:- We should add CF_FORCE_ORIGINAL_BINLOG_FORMAT when there is ddl on temp table. For optimize, analyze, repair we wont change anything ,Then will be logged in binlog , But they also dont throw any error if operation fails Since slave wont be having any temp table , but these operation on tmp table will be processed without breaking replication. For rename we need a different logic MDEV-16728 will solve it.
30 lines
766 B
Text
30 lines
766 B
Text
# ==== Purpose ====
|
|
#
|
|
# Test if statements used temporary tables are not binlogged in the case of
|
|
# binlog_format=row
|
|
#
|
|
# ==== Method ====
|
|
#
|
|
# We will see if binlog file size is increased or not, It should be constant for the
|
|
# entire period of test.
|
|
#
|
|
# ==== Related bugs ====
|
|
#
|
|
# Mdev-9266
|
|
#
|
|
source include/have_log_bin.inc;
|
|
source include/have_binlog_format_row.inc;
|
|
|
|
RESET MASTER;
|
|
|
|
--echo #Create table test
|
|
--let $sql_query= create temporary table t1(a int, b int)
|
|
--source suite/binlog/include/check_binlog_size.inc
|
|
|
|
--echo #Add index test
|
|
--let $sql_query= create index index_a on t1(a)
|
|
--source suite/binlog/include/check_binlog_size.inc
|
|
|
|
--echo #drop index test
|
|
--let $sql_query= drop index index_a on t1
|
|
--source suite/binlog/include/check_binlog_size.inc
|