diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2022-08-09 09:57:13 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2022-08-09 09:57:13 +0200 |
commit | 22d455612b0abbb4b9f527e61348d4c6336b59d5 (patch) | |
tree | d39436232e232c5a5beb996e86e2b34b05ab5115 /include/mysql/psi/mysql_thread.h | |
parent | bfdc4ff22ecf626eb46479e1a0dc1049d61a8d78 (diff) | |
parent | 75d631f333544de4487a6dd251d6f361e1d55d6b (diff) | |
download | mariadb-git-22d455612b0abbb4b9f527e61348d4c6336b59d5.tar.gz |
Merge branch '10.8' into 10.9
Diffstat (limited to 'include/mysql/psi/mysql_thread.h')
-rw-r--r-- | include/mysql/psi/mysql_thread.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/mysql/psi/mysql_thread.h b/include/mysql/psi/mysql_thread.h index a301adcad18..b6247af65f3 100644 --- a/include/mysql/psi/mysql_thread.h +++ b/include/mysql/psi/mysql_thread.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2008, 2021, Oracle and/or its affiliates. +/* Copyright (c) 2008, 2022, Oracle and/or its affiliates. Copyright (c) 2020, 2021, MariaDB Corporation. This program is free software; you can redistribute it and/or modify @@ -1155,6 +1155,13 @@ static inline void inline_mysql_thread_set_psi_THD(THD *thd) } #endif /* __cplusplus */ +static inline void mysql_thread_set_peer_port(uint port __attribute__ ((unused))) { +#ifdef HAVE_PSI_THREAD_INTERFACE + struct PSI_thread *psi = PSI_THREAD_CALL(get_thread)(); + PSI_THREAD_CALL(set_thread_peer_port)(psi, port); +#endif +} + #endif #endif /* DISABLE_MYSQL_THREAD_H */ |