diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2022-07-29 14:48:01 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2022-07-29 14:48:01 +0200 |
commit | 61d08f74275b129c5d00daaa7856aead88f034ff (patch) | |
tree | 10606967a115d629ccf6ad8775c884f1ad519bc8 /include/mysql/psi/mysql_thread.h | |
parent | bee3e96da35a5811b6815c4299d87352d2bde95c (diff) | |
download | mariadb-git-61d08f74275b129c5d00daaa7856aead88f034ff.tar.gz |
mysql-5.7.39
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 479d1511df4..c25e90f2120 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. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, @@ -1320,6 +1320,13 @@ static inline void inline_mysql_thread_set_psi_THD(THD *thd) } #endif /* __cplusplus */ +static inline void mysql_thread_set_peer_port(uint port MY_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 */ |