mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixed bug #29938.
mysqldump --skip-events --all-databases dumped data of the mysqld.event table, and during the restoration from this dump events were created in spite of the --skip-events option. The mysqldump client has been modified to ignore mysql.event table data in case of --skip-events options.
This commit is contained in:
@ -3039,6 +3039,18 @@ static void dump_table(char *table, char *db)
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
/*
|
||||
Check --skip-events flag: it is not enough to skip creation of events
|
||||
discarding SHOW CREATE EVENT statements generation. The myslq.event
|
||||
table data should be skipped too.
|
||||
*/
|
||||
if (!opt_events && !my_strcasecmp(&my_charset_latin1, db, "mysql") &&
|
||||
!my_strcasecmp(&my_charset_latin1, table, "event"))
|
||||
{
|
||||
verbose_msg("-- Skipping data table mysql.event, --skip-events was used\n");
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
result_table= quote_name(table,table_buff, 1);
|
||||
opt_quoted_table= quote_name(table, table_buff2, 0);
|
||||
|
||||
|
Reference in New Issue
Block a user