mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
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
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user