1
0
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:
tomas@poseidon.ndb.mysql.com
2006-02-06 11:47:12 +01:00
parent 36e9bd0344
commit a8f1cffd95
7 changed files with 98 additions and 41 deletions

View File

@ -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, "");