Commit d8a27815 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 6fd692ee
......@@ -2758,7 +2758,7 @@ static int dump_all_tablespaces()
char *endsemi;
if (mysql_query_with_error_report(mysql, &tableres,
"SELECT DISTINCT"
"SELECT"
" LOGFILE_GROUP_NAME,"
" FILE_NAME,"
" TOTAL_EXTENTS,"
......@@ -2768,6 +2768,8 @@ static int dump_all_tablespaces()
" FROM INFORMATION_SCHEMA.FILES"
" WHERE FILE_TYPE = \"UNDO LOG\""
" AND FILE_NAME IS NOT NULL"
" GROUP BY LOGFILE_GROUP_NAME, FILE_NAME"
", ENGINE"
" ORDER BY LOGFILE_GROUP_NAME"))
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