Skip to content

Commit

Permalink
[postfix] reset net.vio->thread_id for thread pool mode
Browse files Browse the repository at this point in the history
  • Loading branch information
fatcat-liu committed Apr 3, 2023
1 parent 6d90d86 commit 3cbe04a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sql/sql_class.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1386,6 +1386,12 @@ void THD::store_globals() {
set_my_thread_var_id(m_thread_id);
#endif
real_id = my_thread_self(); // For debugging

#ifdef USE_PPOLL_IN_VIO
if (net.vio != nullptr) {
net.vio->thread_id = real_id;
}
#endif
}

/*
Expand Down

0 comments on commit 3cbe04a

Please sign in to comment.