From fed043a8528a60ceece05ee4622906d4ded4362c Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 27 May 2006 08:05:39 +0300 Subject: [PATCH] sql_class.cc, mysql_priv.h: Added accessor to handler data. sql/mysql_priv.h: Added accessor to handler data. sql/sql_class.cc: Added accessor to handler data. --- sql/mysql_priv.h | 1 + sql/sql_class.cc | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h index 7f40bd2bc57..e3db96be2e7 100644 --- a/sql/mysql_priv.h +++ b/sql/mysql_priv.h @@ -489,6 +489,7 @@ inline THD *_current_thd(void) my_bool thd_in_lock_tables(const THD *thd); my_bool thd_tablespace_op(const THD *thd); const char *thd_proc_info(THD *thd, const char *info); +void **thd_ha_data(const THD *thd, const struct handlerton *hton); /* External variables diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 9b2ad209e84..b4a7f9abc1c 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -186,6 +186,11 @@ const char *thd_proc_info(THD *thd, const char *info) return old_info; } +void **thd_ha_data(const THD *thd, const struct handlerton *hton) +{ + return (void **) thd->ha_data + hton->slot; +} + /* Pass nominal parameters to Statement constructor only to ensure that