Commit f9606d25 authored by unknown's avatar unknown

Fix for Bug #17840 mysqldump should not dump tables in database cluster, skip...

Fix for Bug #17840  mysqldump should not dump tables in database cluster, skip cluster internal database


client/mysqldump.c:
  Fix for Bug #17840  mysqldump should not dump tables in database , skip cluster internal database
parent 9d1f1c32
...@@ -134,7 +134,7 @@ static CHARSET_INFO *charset_info= &my_charset_latin1; ...@@ -134,7 +134,7 @@ static CHARSET_INFO *charset_info= &my_charset_latin1;
const char *default_dbug_option="d:t:o,/tmp/mysqldump.trace"; const char *default_dbug_option="d:t:o,/tmp/mysqldump.trace";
/* do we met VIEWs during tables scaning */ /* do we met VIEWs during tables scaning */
my_bool was_views= 0; my_bool was_views= 0;
const char * cluster_db="cluster";
const char *compatible_mode_names[]= const char *compatible_mode_names[]=
{ {
"MYSQL323", "MYSQL40", "POSTGRESQL", "ORACLE", "MSSQL", "DB2", "MYSQL323", "MYSQL40", "POSTGRESQL", "ORACLE", "MSSQL", "DB2",
...@@ -2937,6 +2937,8 @@ static int dump_all_tables_in_db(char *database) ...@@ -2937,6 +2937,8 @@ static int dump_all_tables_in_db(char *database)
afterdot= strmov(hash_key, database); afterdot= strmov(hash_key, database);
*afterdot++= '.'; *afterdot++= '.';
if (!strcmp(database, cluster_db)) /* Skip cluster internal database */
return 0;
if (init_dumping(database)) if (init_dumping(database))
return 1; return 1;
if (opt_xml) if (opt_xml)
......
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