mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
* Fix for BUG#1248: "LOAD DATA FROM MASTER drops the slave's db unexpectedly".
Now LOAD DATA FROM MASTER does not drop the database, instead it only tries to create it, and drops/creates table-by-table. * replicate_wild_ignore_table='db1.%' is now considered as "ignore the 'db1' database as a whole", as it already works for CREATE DATABASE and DROP DATABASE.
This commit is contained in:
@@ -1568,9 +1568,12 @@ mysql_execute_command(void)
|
||||
goto error;
|
||||
}
|
||||
LOCK_ACTIVE_MI;
|
||||
// fetch_master_table will send the error to the client on failure
|
||||
/*
|
||||
fetch_master_table will send the error to the client on failure.
|
||||
Give error if the table already exists.
|
||||
*/
|
||||
if (!fetch_master_table(thd, tables->db, tables->real_name,
|
||||
active_mi, 0))
|
||||
active_mi, 0, 0))
|
||||
{
|
||||
send_ok(&thd->net);
|
||||
}
|
||||
|
Reference in New Issue
Block a user