Commit e7a1495f authored by stewart@willster.(none)'s avatar stewart@willster.(none)

Merge willster.(none):/home/stewart/Documents/MySQL/5.1/ndb

into  willster.(none):/home/stewart/Documents/MySQL/5.1/bug20809
parents 6a98b6c3 40dffeba
...@@ -2750,6 +2750,12 @@ static int dump_all_tablespaces() ...@@ -2750,6 +2750,12 @@ static int dump_all_tablespaces()
MYSQL_RES *tableres; MYSQL_RES *tableres;
char buf[FN_REFLEN]; char buf[FN_REFLEN];
int first; int first;
/*
The following are used for parsing the EXTRA field
*/
char extra_format[]= "UNDO_BUFFER_SIZE=";
char *ubs;
char *endsemi;
if (mysql_query_with_error_report(mysql, &tableres, if (mysql_query_with_error_report(mysql, &tableres,
"SELECT DISTINCT" "SELECT DISTINCT"
...@@ -2757,7 +2763,8 @@ static int dump_all_tablespaces() ...@@ -2757,7 +2763,8 @@ static int dump_all_tablespaces()
" FILE_NAME," " FILE_NAME,"
" TOTAL_EXTENTS," " TOTAL_EXTENTS,"
" INITIAL_SIZE," " INITIAL_SIZE,"
" ENGINE" " ENGINE,"
" EXTRA"
" 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"
...@@ -2789,9 +2796,16 @@ static int dump_all_tablespaces() ...@@ -2789,9 +2796,16 @@ static int dump_all_tablespaces()
row[1]); row[1]);
if (first) if (first)
{ {
ubs= strstr(row[5],extra_format);
if(!ubs)
break;
ubs+= strlen(extra_format);
endsemi= strstr(ubs,";");
if(endsemi)
endsemi[0]= '\0';
fprintf(md_result_file, fprintf(md_result_file,
" UNDO_BUFFER_SIZE %s\n", " UNDO_BUFFER_SIZE %s\n",
row[2]); ubs);
} }
fprintf(md_result_file, fprintf(md_result_file,
" INITIAL_SIZE %s\n" " INITIAL_SIZE %s\n"
......
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