Browse Source

[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
pull/73/head
Zardosht Kasheff 13 years ago
committed by Yoni Fogel
parent
commit
f845d656aa
  1. 1
      storage/tokudb/ha_tokudb.cc
  2. 2
      storage/tokudb/ha_tokudb.h

1
storage/tokudb/ha_tokudb.cc

@ -7709,6 +7709,7 @@ int ha_tokudb::optimize(THD * thd, HA_CHECK_OPT * check_opt) {
struct hot_optimize_context hc;
memset(&hc, 0, sizeof hc);
hc.thd = thd;
hc.write_status_msg = this->write_status_msg;
hc.ha = this;
hc.current_table = i;
hc.num_tables = curr_num_DBs;

2
storage/tokudb/ha_tokudb.h

@ -24,7 +24,7 @@ typedef struct loader_context {
typedef struct hot_optimize_context {
THD *thd;
char write_status_msg[200];
char* write_status_msg;
ha_tokudb *ha;
uint current_table;
uint num_tables;

Loading…
Cancel
Save