Commit 1fbe91f7 authored by unknown's avatar unknown

fil0fil.c:

  Remove the use of mem_realloc in fil0fil.c; mem_realloc() was broken and the patch to remove its definition will propagate from the 4.0 tree; crash recovery with innodb_file_per_table has to be tested after this patch, not tested yet


innobase/fil/fil0fil.c:
  Remove the use of mem_realloc in fil0fil.c; mem_alloc() was broken and the patch to remove its definition will propagate from the 4.0 tree; crash recovery with innodb_file_per_table has to be tested after this patch, not tested yet
parent 78f975ee
...@@ -2820,12 +2820,11 @@ fil_load_single_table_tablespaces(void) ...@@ -2820,12 +2820,11 @@ fil_load_single_table_tablespaces(void)
if (len > dbpath_len) { if (len > dbpath_len) {
dbpath_len = len; dbpath_len = len;
if (!dbpath) { if (dbpath) {
dbpath = mem_alloc(dbpath_len); mem_free(dbpath);
} else {
dbpath = mem_realloc(dbpath, dbpath_len,
__FILE__, __LINE__);
} }
dbpath = mem_alloc(dbpath_len);
} }
sprintf(dbpath, "%s/%s", fil_path_to_mysql_datadir, sprintf(dbpath, "%s/%s", fil_path_to_mysql_datadir,
dbinfo.name); dbinfo.name);
......
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