diff options
author | kostja@bodhi.(none) <> | 2007-08-31 10:19:52 +0400 |
---|---|---|
committer | kostja@bodhi.(none) <> | 2007-08-31 10:19:52 +0400 |
commit | 8d1af60da0e29618f822ea19cfed6c64cc9ae82a (patch) | |
tree | 14710401798f8ef572997a003e8792fb9353e947 /sql/ha_ndbcluster_binlog.h | |
parent | 5b10ba2ce22a5392a49776490db64d641a14a38c (diff) | |
download | mariadb-git-8d1af60da0e29618f822ea19cfed6c64cc9ae82a.tar.gz |
Never access thd->ha_data directly, use getters/setters from the plugin
API instead.
This is a pre-requisite of the fix for Bug 12713, which changes the
data type of thd->ha_data from void * to struct Ha_data.
Diffstat (limited to 'sql/ha_ndbcluster_binlog.h')
-rw-r--r-- | sql/ha_ndbcluster_binlog.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/ha_ndbcluster_binlog.h b/sql/ha_ndbcluster_binlog.h index b5b8d0d9745..53852028f08 100644 --- a/sql/ha_ndbcluster_binlog.h +++ b/sql/ha_ndbcluster_binlog.h @@ -216,10 +216,12 @@ inline void free_share(NDB_SHARE **share, bool have_lock= FALSE) inline Thd_ndb * -get_thd_ndb(THD *thd) { return (Thd_ndb *) thd->ha_data[ndbcluster_hton->slot]; } +get_thd_ndb(THD *thd) +{ return (Thd_ndb *) thd_get_ha_data(thd, ndbcluster_hton); } inline void -set_thd_ndb(THD *thd, Thd_ndb *thd_ndb) { thd->ha_data[ndbcluster_hton->slot]= thd_ndb; } +set_thd_ndb(THD *thd, Thd_ndb *thd_ndb) +{ thd_set_ha_data(thd, ndbcluster_hton, thd_ndb); } Ndb* check_ndb_in_thd(THD* thd); |