From f845d656aa0cf907e1cb547ccd1f59c098fdeae6 Mon Sep 17 00:00:00 2001 From: Zardosht Kasheff Date: Wed, 17 Apr 2013 00:02:08 -0400 Subject: [PATCH] [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 --- storage/tokudb/ha_tokudb.cc | 1 + storage/tokudb/ha_tokudb.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/storage/tokudb/ha_tokudb.cc b/storage/tokudb/ha_tokudb.cc index 04a662052d9..7666a63deb9 100644 --- a/storage/tokudb/ha_tokudb.cc +++ b/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; diff --git a/storage/tokudb/ha_tokudb.h b/storage/tokudb/ha_tokudb.h index 954dd698c4e..25109c404ad 100644 --- a/storage/tokudb/ha_tokudb.h +++ b/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;