Skip to content

Commit 6908f9e

Browse files
committed
Promote getting to 10k GitHub stars in server log and client prompt
Ask users to give MariaDB a star by having an extra line in the MariaDB client prompt: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 33 Server version: 12.2.0-MariaDB-1:12.2.0 mariadb.org binary distribution Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Please help get to 10k stars at https://github.com/MariaDB/Server Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> Additionally, have this extra line in server logs: [Note] Please help get to 10k stars at https://github.com/MariaDB/server This change is done in a way that it is easy to cherry-pick to older releases, and the text can later be changed to promote something else once MariaDB has surpassed MySQL in GitHub stars.
1 parent e02f4d7 commit 6908f9e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

client/mysql.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,6 +1344,8 @@ int main(int argc,char *argv[])
13441344
mysql_thread_id(&mysql), server_version_string(&mysql));
13451345
put_info((char*) glob_buffer.ptr(),INFO_INFO);
13461346
put_info(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000"), INFO_INFO);
1347+
put_info("Please help get to 10k stars at https://github.com/MariaDB/Server",
1348+
INFO_INFO);
13471349
}
13481350

13491351
#ifdef HAVE_READLINE

sql/mysqld.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5047,11 +5047,15 @@ static int init_server_components()
50475047
Print source revision hash, as one of the first lines, if not the
50485048
first in error log, for troubleshooting and debugging purposes
50495049
*/
5050-
if (!opt_help)
5050+
if (!opt_help) {
50515051
sql_print_information("Starting MariaDB %s source revision %s "
50525052
"server_uid %s as process %lu",
50535053
server_version, SOURCE_REVISION, server_uid,
50545054
(ulong) getpid());
5055+
sql_print_information("Please help get to 10k stars at "
5056+
"https://github.com/MariaDB/server");
5057+
}
5058+
50555059

50565060
#ifdef WITH_PERFSCHEMA_STORAGE_ENGINE
50575061
/*

0 commit comments

Comments
 (0)