Commit ce473d81 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:4371], have ::optimize use the handler's status buffer

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@38616 c7de825b-a66e-492c-adef-691d508d4ae1
parent 0f5d34df
...@@ -7709,6 +7709,7 @@ int ha_tokudb::optimize(THD * thd, HA_CHECK_OPT * check_opt) { ...@@ -7709,6 +7709,7 @@ int ha_tokudb::optimize(THD * thd, HA_CHECK_OPT * check_opt) {
struct hot_optimize_context hc; struct hot_optimize_context hc;
memset(&hc, 0, sizeof hc); memset(&hc, 0, sizeof hc);
hc.thd = thd; hc.thd = thd;
hc.write_status_msg = this->write_status_msg;
hc.ha = this; hc.ha = this;
hc.current_table = i; hc.current_table = i;
hc.num_tables = curr_num_DBs; hc.num_tables = curr_num_DBs;
......
...@@ -24,7 +24,7 @@ typedef struct loader_context { ...@@ -24,7 +24,7 @@ typedef struct loader_context {
typedef struct hot_optimize_context { typedef struct hot_optimize_context {
THD *thd; THD *thd;
char write_status_msg[200]; char* write_status_msg;
ha_tokudb *ha; ha_tokudb *ha;
uint current_table; uint current_table;
uint num_tables; uint num_tables;
......
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