diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2022-08-02 09:34:15 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2022-08-02 09:34:15 +0200 |
commit | b043e1098e3575f6e91882ab7b6b254327a2865b (patch) | |
tree | ccc06f38301a8e4dcaade49dee57faeaa45cdb98 /mysys/psi_noop.c | |
parent | 4d0c53a3276da82e84d477c5a94bf40083f06cbf (diff) | |
parent | 61d08f74275b129c5d00daaa7856aead88f034ff (diff) | |
download | mariadb-git-b043e1098e3575f6e91882ab7b6b254327a2865b.tar.gz |
Merge branch 'merge-perfschema-5.7' into 10.5
Diffstat (limited to 'mysys/psi_noop.c')
-rw-r--r-- | mysys/psi_noop.c | 39 |
1 files changed, 29 insertions, 10 deletions
diff --git a/mysys/psi_noop.c b/mysys/psi_noop.c index e81ad4893b7..403be3c94e9 100644 --- a/mysys/psi_noop.c +++ b/mysys/psi_noop.c @@ -1,17 +1,29 @@ -/* Copyright (c) 2011, 2016, Oracle and/or its affiliates. +/* Copyright (c) 2011, 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 as published by - the Free Software Foundation; version 2 of the License. + it under the terms of the GNU General Public License, version 2.0, + as published by the Free Software Foundation. + + This program is also distributed with certain software (including + but not limited to OpenSSL) that is licensed under separate terms, + as designated in a particular file or component or in included license + documentation. The authors of MySQL hereby grant you an additional + permission to link the program and your derivative works with the + separately licensed software that they have included with MySQL. + + Without limiting anything contained in the foregoing, this file, + which is part of C Driver for MySQL (Connector/C), is also subject to the + Universal FOSS Exception, version 1.0, a copy of which can be found at + http://oss.oracle.com/licenses/universal-foss-exception. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. + GNU General Public License, version 2.0, for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA */ + 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */ /* Always provide the noop performance interface, for plugins. @@ -262,6 +274,11 @@ static void set_thread_noop(PSI_thread* thread NNN) return; } +static void set_thread_peer_port_noop(PSI_thread * thread NNN, uint port NNN) +{ + return; +} + static void delete_current_thread_noop(void) { return; @@ -481,7 +498,7 @@ static void end_file_rename_wait_noop(PSI_file_locker *locker NNN, static PSI_stage_progress* start_stage_noop(PSI_stage_key key NNN, - const char *src_file NNN, int src_line NNN) + const char *src_file NNN, int src_line NNN) { return NULL; } @@ -776,9 +793,9 @@ digest_end_noop(PSI_digest_locker *locker NNN, } static int -set_thread_connect_attrs_noop(const char *buffer NNN, - uint length NNN, - const void *from_cs NNN) +set_thread_connect_attrs_noop(const char *buffer __attribute__ ((unused)), + uint length __attribute__ ((unused)), + const void *from_cs __attribute__ ((unused))) { return 0; } @@ -1025,7 +1042,9 @@ static PSI PSI_noop= set_metadata_lock_status_noop, destroy_metadata_lock_noop, start_metadata_wait_noop, - end_metadata_wait_noop + end_metadata_wait_noop, + + set_thread_peer_port_noop }; /** |