mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +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.
7 lines
164 B
Text
7 lines
164 B
Text
RESET MASTER;
|
|
#Create table test
|
|
create temporary table t1(a int, b int);
|
|
#Add index test
|
|
create index index_a on t1(a);
|
|
#drop index test
|
|
drop index index_a on t1;
|