diff options
author | unknown <vtkachenko@vadima.volia.com> | 2006-05-27 08:05:39 +0300 |
---|---|---|
committer | unknown <vtkachenko@vadima.volia.com> | 2006-05-27 08:05:39 +0300 |
commit | fed043a8528a60ceece05ee4622906d4ded4362c (patch) | |
tree | 3e2e58c6283bd558165caa193c5a41019827226a /sql | |
parent | 88d10859840c62298e88026085eb2fa9aaf18552 (diff) | |
download | mariadb-git-fed043a8528a60ceece05ee4622906d4ded4362c.tar.gz |
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.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/mysql_priv.h | 1 | ||||
-rw-r--r-- | sql/sql_class.cc | 5 |
2 files changed, 6 insertions, 0 deletions
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 |