mirror of
https://github.com/MariaDB/server.git
synced 2025-07-16 00:42:55 +03:00
read-only slave using statement replication should replicate tmp tables
Relates to MDEV-17863 DROP TEMPORARY TABLE creates a transaction in binary log on read only server Other things: - Fixed that insert into normal_table select from tmp_table is replicated as row events if tmp_table doesn't exists on slave.
This commit is contained in:
@ -6040,6 +6040,8 @@ int THD::decide_logging_format(TABLE_LIST *tables)
|
||||
*/
|
||||
DBUG_ASSERT(share->tmp_table);
|
||||
flags&= ~HA_BINLOG_STMT_CAPABLE;
|
||||
/* We can only use row logging */
|
||||
set_current_stmt_binlog_format_row();
|
||||
}
|
||||
|
||||
DBUG_PRINT("info", ("table: %s; ha_table_flags: 0x%llx",
|
||||
|
Reference in New Issue
Block a user