Skip to content

Commit 651a43e

Browse files
author
Alexey Botchkov
committed
MDEV-18782 mysqldump --all-databases causes segmentation fault.
Do not consider rows of Information_schema.files where LOGFILE_GROUP_NAME is NULL.
1 parent 26cb9f7 commit 651a43e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

client/mysqldump.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4298,7 +4298,8 @@ static int dump_tablespaces(char* ts_where)
42984298
" EXTRA"
42994299
" FROM INFORMATION_SCHEMA.FILES"
43004300
" WHERE FILE_TYPE = 'UNDO LOG'"
4301-
" AND FILE_NAME IS NOT NULL",
4301+
" AND FILE_NAME IS NOT NULL"
4302+
" AND LOGFILE_GROUP_NAME IS NOT NULL",
43024303
256, 1024);
43034304
if(ts_where)
43044305
{
@@ -4313,7 +4314,7 @@ static int dump_tablespaces(char* ts_where)
43134314
}
43144315
dynstr_append_checked(&sqlbuf,
43154316
" GROUP BY LOGFILE_GROUP_NAME, FILE_NAME"
4316-
", ENGINE"
4317+
", ENGINE, TOTAL_EXTENTS, INITIAL_SIZE"
43174318
" ORDER BY LOGFILE_GROUP_NAME");
43184319

43194320
if (mysql_query(mysql, sqlbuf.str) ||

0 commit comments

Comments
 (0)