mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Bug #17038, distribution of schema operation to multiple binlogs missing/multiple entries, partial fix
- log alter table directly in server instead of in handler - acknowledge alter table _after_ all binlog events have been processed
This commit is contained in:
@ -501,7 +501,7 @@ bool mysql_create_db(THD *thd, char *db, HA_CREATE_INFO *create_info,
|
||||
query_length= thd->query_length;
|
||||
}
|
||||
|
||||
ha_binlog_log_query(thd, LOGCOM_CREATE_DB,
|
||||
ha_binlog_log_query(thd, 0, LOGCOM_CREATE_DB,
|
||||
query, query_length,
|
||||
db, "");
|
||||
|
||||
@ -579,7 +579,7 @@ bool mysql_alter_db(THD *thd, const char *db, HA_CREATE_INFO *create_info)
|
||||
thd->variables.collation_database= thd->db_charset;
|
||||
}
|
||||
|
||||
ha_binlog_log_query(thd, LOGCOM_ALTER_DB,
|
||||
ha_binlog_log_query(thd, 0, LOGCOM_ALTER_DB,
|
||||
thd->query, thd->query_length,
|
||||
db, "");
|
||||
|
||||
|
Reference in New Issue
Block a user