Commit 121d7b39 authored by unknown's avatar unknown

BUG#20809 mysqldump does not backup TS and LG information correctly

restore of the dump (ndb_dd_dump test) was failing for probably a merge problem. fixed now.


client/mysqldump.c:
  fix query to make dump restorable
parent e963a7cd
...@@ -2758,7 +2758,7 @@ static int dump_all_tablespaces() ...@@ -2758,7 +2758,7 @@ static int dump_all_tablespaces()
char *endsemi; char *endsemi;
if (mysql_query_with_error_report(mysql, &tableres, if (mysql_query_with_error_report(mysql, &tableres,
"SELECT DISTINCT" "SELECT"
" LOGFILE_GROUP_NAME," " LOGFILE_GROUP_NAME,"
" FILE_NAME," " FILE_NAME,"
" TOTAL_EXTENTS," " TOTAL_EXTENTS,"
...@@ -2768,6 +2768,8 @@ static int dump_all_tablespaces() ...@@ -2768,6 +2768,8 @@ static int dump_all_tablespaces()
" FROM INFORMATION_SCHEMA.FILES" " FROM INFORMATION_SCHEMA.FILES"
" WHERE FILE_TYPE = \"UNDO LOG\"" " WHERE FILE_TYPE = \"UNDO LOG\""
" AND FILE_NAME IS NOT NULL" " AND FILE_NAME IS NOT NULL"
" GROUP BY LOGFILE_GROUP_NAME, FILE_NAME"
", ENGINE"
" ORDER BY LOGFILE_GROUP_NAME")) " ORDER BY LOGFILE_GROUP_NAME"))
return 1; return 1;
......
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