Commit 661c6aea authored by unknown's avatar unknown

Bug #18607: LOAD DATA FROM MASTER fails because of INFORMATION_SCHEMA database

  Simply exclude INFORMATION_SCHEMA from LOAD DATA FROM MASTER just like
  we exclude the `mysql` database.

  There's no test for this, because it requires an unfiltered 'LOAD DATA
  FROM MASTER' which is too likely to cause chaos (such as when running
  the test suite against an external server).


sql/repl_failsafe.cc:
  Exclude information_schema from LOAD DATA FROM MASTER.
parent 42f71581
......@@ -860,7 +860,8 @@ bool load_master_data(THD* thd)
if (!db_ok(db, replicate_do_db, replicate_ignore_db) ||
!db_ok_with_wild_table(db) ||
!strcmp(db,"mysql"))
!strcmp(db,"mysql") ||
is_schema_db(db))
{
*cur_table_res = 0;
continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment