Commit 8c8d584f authored by Sergey Vojtovich's avatar Sergey Vojtovich

Fixed InnoDB to not use broken thd_ha_data()

Part of MDEV-19515 - Improve connect speed
parent 5e1b3cc8
...@@ -1828,7 +1828,7 @@ thd_innodb_tmpdir( ...@@ -1828,7 +1828,7 @@ thd_innodb_tmpdir(
@return reference to transaction pointer */ @return reference to transaction pointer */
static trx_t* thd_to_trx(THD* thd) static trx_t* thd_to_trx(THD* thd)
{ {
return *reinterpret_cast<trx_t**>(thd_ha_data(thd, innodb_hton_ptr)); return reinterpret_cast<trx_t*>(thd_get_ha_data(thd, innodb_hton_ptr));
} }
#ifdef WITH_WSREP #ifdef WITH_WSREP
......
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