summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2022-08-03 10:47:52 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2022-08-03 12:19:59 +0200
commitd2f1c3ed6ccf823babf311970dfa0b7c57850db7 (patch)
tree7c3db13f204c0a0c08f48ddaa402e64a2e209192 /mysys
parent212994f704496d01881f377e34e04bd007e5e298 (diff)
parentaf143474d8925cdbcfc0795a2bc274cbeaad8889 (diff)
downloadmariadb-git-d2f1c3ed6ccf823babf311970dfa0b7c57850db7.tar.gz
Merge branch '10.5' into bb-10.6-release
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_getopt.c3
-rw-r--r--mysys/psi_noop.c39
2 files changed, 31 insertions, 11 deletions
diff --git a/mysys/my_getopt.c b/mysys/my_getopt.c
index 3fe025ba808..2b3e774f01a 100644
--- a/mysys/my_getopt.c
+++ b/mysys/my_getopt.c
@@ -1592,7 +1592,8 @@ void my_print_help(const struct my_option *options)
}
}
putchar('\n');
- if ((optp->var_type & GET_TYPE_MASK) == GET_BOOL)
+ if ((optp->var_type & GET_TYPE_MASK) == GET_BOOL ||
+ (optp->var_type & GET_TYPE_MASK) == GET_BIT)
{
if (optp->def_value != 0)
{
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
};
/**