1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Bug #20439913 CREATE TABLE DB.TABLE LIKE TMPTABLE IS

BINLOGGED INCORRECTLY - BREAKS A SLAVE

Submitted a incomplete patch with my previous push,
re submitting the extra changes the required to make
the patch complete.
This commit is contained in:
Venkatesh Duggirala
2015-03-13 13:13:48 +05:30
parent 151b8ec4d1
commit 59142d9a27
4 changed files with 11 additions and 3 deletions

View File

@ -4720,8 +4720,7 @@ bool mysql_create_like_table(THD* thd, TABLE_LIST* table, TABLE_LIST* src_table,
int result __attribute__((unused))=
store_create_info(thd, table, &query,
create_info,
table->db ? TRUE : FALSE/* show_database */);
create_info, TRUE /* show_database */);
DBUG_ASSERT(result == 0); // store_create_info() always return 0
if (write_bin_log(thd, TRUE, query.ptr(), query.length()))