From e64e6768e00c6ef58824b79f2009aa5668ccd538 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Sun, 8 Jan 2023 09:26:50 +1100 Subject: [PATCH] MDEV-17093: SOURCE_REVISION in log (postfix - not in help) Don't display the source revision in the mysqld --help output. --- sql/mysqld.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 75eb2230b32..e4a814b82dd 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -5249,8 +5249,9 @@ static int init_server_components()  Print source revision hash, as one of the first lines, if not the  first in error log, for troubleshooting and debugging purposes  */ - sql_print_information("Starting MariaDB %s source revision %s as process %lu", - server_version, SOURCE_REVISION, (ulong) getpid()); + if (!opt_help) + sql_print_information("Starting MariaDB %s source revision %s as process %lu", + server_version, SOURCE_REVISION, (ulong) getpid()); #ifdef WITH_PERFSCHEMA_STORAGE_ENGINE /*