Commit fc70b46b authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:2044], clean it up

git-svn-id: file:///svn/mysql/tokudb-engine/src@14778 c7de825b-a66e-492c-adef-691d508d4ae1
parent 99ba65e2
...@@ -34,19 +34,11 @@ extern "C" { ...@@ -34,19 +34,11 @@ extern "C" {
#define TOKU_METADB_NAME ".\\tokudb_meta.tokudb" #define TOKU_METADB_NAME ".\\tokudb_meta.tokudb"
static inline void *thd_data_get(THD *thd, int slot) { static inline void *thd_data_get(THD *thd, int slot) {
#if MYSQL_VERSION_ID <= 50123
return thd->ha_data[slot];
#else
return thd->ha_data[slot].ha_ptr; return thd->ha_data[slot].ha_ptr;
#endif
} }
static inline void thd_data_set(THD *thd, int slot, void *data) { static inline void thd_data_set(THD *thd, int slot, void *data) {
#if MYSQL_VERSION_ID <= 50123
thd->ha_data[slot] = data;
#else
thd->ha_data[slot].ha_ptr = data; thd->ha_data[slot].ha_ptr = data;
#endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment