Skip to content

Commit

Permalink
PS-9509 (8.0) Solved problem with memory counting by adding mysql_th…
Browse files Browse the repository at this point in the history
…read_set_psi_THD(thd) call
  • Loading branch information
lukin-oleksiy committed Jan 13, 2025
1 parent 66b2a91 commit 391ada5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sql/threadpool_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ static bool thread_attach(THD *thd) {
thd->store_globals();
#ifdef HAVE_PSI_THREAD_INTERFACE
PSI_THREAD_CALL(set_thread)(thd->get_psi());
mysql_thread_set_psi_THD(thd);
#endif
mysql_socket_set_thread_owner(
thd->get_protocol_classic()->get_vio()->mysql_socket);
Expand Down

0 comments on commit 391ada5

Please sign in to comment.