Skip to content

Commit f9807aa

Browse files
committed
Merge branch '10.11' into 11.0
2 parents fc670b4 + 3a06964 commit f9807aa

File tree

820 files changed

+18715
-6264
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

820 files changed

+18715
-6264
lines changed

.clang-format

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ IndentPPDirectives: None
7070
IndentWidth: 2
7171
IndentWrappedFunctionNames: false
7272
KeepEmptyLinesAtTheStartOfBlocks: true
73-
Language: Cpp
7473
MacroBlockBegin: ''
7574
MacroBlockEnd: ''
7675
MaxEmptyLinesToKeep: 1

BUILD/SETUP.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,12 @@ if test `$CC -v 2>&1 | tail -1 | sed 's/ .*$//'` = 'gcc' ; then
267267
fi
268268
fi
269269

270+
if test `$CC -v 2>&1 | head -1 | sed 's/ .*$//'` = 'clang' ; then
271+
dbug_cflags="$dbug_cflags -Wframe-larger-than=16384 -fno-inline"
272+
c_warnings="$c_warnings -Wframe-larger-than=16384"
273+
cxx_warnings="$cxx_warnings -Wframe-larger-than=16384"
274+
fi
275+
270276

271277
# If ccache (a compiler cache which reduces build time)
272278
# (http://samba.org/ccache) is installed, use it.

CMakeLists.txt

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ENDIF()
3131
# in RPM's:
3232

3333
#set(CPACK_RPM_SPEC_MORE_DEFINE "%define __spec_install_post /bin/true")
34-
FOREACH(p CMP0022 CMP0046 CMP0040 CMP0048 CMP0054 CMP0075 CMP0069 CMP0135)
34+
FOREACH(p CMP0022 CMP0046 CMP0040 CMP0048 CMP0054 CMP0074 CMP0075 CMP0069 CMP0135)
3535
IF(POLICY ${p})
3636
CMAKE_POLICY(SET ${p} NEW)
3737
ENDIF()
@@ -188,7 +188,7 @@ ENDIF()
188188
OPTION (WITH_UNIT_TESTS "Compile MySQL with unit tests" ON)
189189

190190
IF (WITHOUT_SERVER)
191-
SET (SKIP_COMPONENTS "Server|IniFiles|SuportFiles|Readme")
191+
SET (SKIP_COMPONENTS "Server|IniFiles|SupportFiles|Readme")
192192
ELSE()
193193
SET (SKIP_COMPONENTS "N-O-N-E")
194194
ENDIF()
@@ -200,8 +200,9 @@ OPTION(NOT_FOR_DISTRIBUTION "Allow linking with GPLv2-incompatible system librar
200200
# Can be switched on only for debug build.
201201
#
202202
OPTION(WITH_PROTECT_STATEMENT_MEMROOT "Enable protection of statement's memory root after first SP/PS execution. Turned into account only for debug build" OFF)
203-
IF (CMAKE_BUILD_TYPE MATCHES "Debug" AND WITH_PROTECT_STATEMENT_MEMROOT)
204-
ADD_DEFINITIONS(-DPROTECT_STATEMENT_MEMROOT)
203+
IF (WITH_PROTECT_STATEMENT_MEMROOT)
204+
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DPROTECT_STATEMENT_MEMROOT")
205+
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DPROTECT_STATEMENT_MEMROOT")
205206
ENDIF()
206207

207208
INCLUDE(check_compiler_flag)
@@ -265,8 +266,6 @@ IF(SECURITY_HARDENED AND NOT WITH_ASAN AND NOT WITH_UBSAN AND NOT WITH_TSAN AND
265266
MY_CHECK_AND_SET_COMPILER_FLAG("-D_FORTIFY_SOURCE=2" RELEASE RELWITHDEBINFO)
266267
ENDIF()
267268

268-
INCLUDE(wsrep)
269-
270269
OPTION(WITH_DBUG_TRACE "Enable DBUG_ENTER()/DBUG_RETURN()/DBUG_PRINT()" ON)
271270
IF(WITH_DBUG_TRACE)
272271
FOREACH(LANG C CXX)
@@ -277,7 +276,12 @@ ENDIF()
277276
# Always enable debug sync for debug builds.
278277
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DENABLED_DEBUG_SYNC")
279278
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DENABLED_DEBUG_SYNC")
280-
279+
280+
IF(CMAKE_COMPILER_IS_GNUCC AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "10")
281+
# Enable extra checks when using a recent enough version of GNU libstdc++
282+
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_GLIBCXX_DEBUG -D_GLIBCXX_ASSERTIONS")
283+
ENDIF()
284+
281285
OPTION(ENABLE_GCOV "Enable gcov (debug, Linux builds only)" OFF)
282286
IF (ENABLE_GCOV)
283287
MY_CHECK_AND_SET_COMPILER_FLAG("-DHAVE_gcov -fprofile-arcs -ftest-coverage -lgcov" DEBUG)
@@ -338,6 +342,8 @@ ELSEIF(TRASH_FREED_MEMORY MATCHES "AUTO" AND NOT WIN32 AND NOT WITH_VALGRIND AND
338342
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DTRASH_FREED_MEMORY")
339343
ENDIF()
340344

345+
INCLUDE(wsrep)
346+
341347
# Set commonly used variables
342348
IF(WIN32)
343349
SET(DEFAULT_MYSQL_HOME "C:/Program Files/MariaDB ${MYSQL_BASE_VERSION}")

README.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Code status:
33

44
* [![Appveyor CI status](https://ci.appveyor.com/api/projects/status/4u6pexmtpuf8jq66?svg=true)](https://ci.appveyor.com/project/rasmushoj/server) ci.appveyor.com
55

6-
## MariaDB: The open source relational database
6+
## MariaDB: The innovative open source database
77

88
MariaDB was designed as a drop-in replacement of MySQL(R) with more
99
features, new storage engines, fewer bugs, and better performance.
@@ -33,28 +33,23 @@ https://mariadb.com/kb/en/mariadb-versus-mysql-compatibility/
3333

3434
https://mariadb.com/kb/en/new-and-old-releases/
3535

36+
Getting the code, building it and testing it
37+
---------------------------------------------------------------
38+
39+
Refer to the following guide: https://mariadb.org/get-involved/getting-started-for-developers/get-code-build-test/ which outlines how to correctly build the source code and run the MariaDB testing framework.
40+
3641
Help
3742
-----
3843

3944
More help is available from the Maria Discuss mailing list
40-
https://launchpad.net/~maria-discuss, MariaDB's Zulip
45+
https://lists.mariadb.org/postorius/lists/discuss.lists.mariadb.org/ and MariaDB's Zulip
4146
instance, https://mariadb.zulipchat.com/
4247

43-
Live QA for beginner contributors
44-
----
45-
MariaDB has a dedicated time each week when we answer new contributor questions live on Zulip.
46-
From 8:00 to 10:00 UTC on Mondays, and 10:00 to 12:00 UTC on Thursdays,
47-
anyone can ask any questions they’d like, and a live developer will be available to assist.
48-
49-
New contributors can ask questions any time, but we will provide immediate feedback during that interval.
50-
5148
Licensing
5249
---------
5350

5451
***************************************************************************
5552

56-
NOTE:
57-
5853
MariaDB is specifically available only under version 2 of the GNU
5954
General Public License (GPLv2). (I.e. Without the "any later version"
6055
clause.) This is inherited from MySQL. Please see the README file in

client/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ INCLUDE_DIRECTORIES(
1818
${CMAKE_SOURCE_DIR}/include
1919
${PCRE_INCLUDE_DIRS}
2020
${CMAKE_SOURCE_DIR}/mysys_ssl
21-
${ZLIB_INCLUDE_DIR}
21+
${ZLIB_INCLUDE_DIRS}
2222
${SSL_INCLUDE_DIRS}
2323
${CMAKE_SOURCE_DIR}/sql
2424
${CMAKE_SOURCE_DIR}/strings

client/client_priv.h

Lines changed: 18 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Copyright (c) 2001, 2012, Oracle and/or its affiliates.
3-
Copyright (c) 2009, 2022, MariaDB
3+
Copyright (c) 2009, 2024, MariaDB
44
55
This program is free software; you can redistribute it and/or modify
66
it under the terms of the GNU General Public License as published by
@@ -38,75 +38,34 @@ enum options_client
3838
{
3939
OPT_CHARSETS_DIR=256, OPT_DEFAULT_CHARSET,
4040
OPT_PAGER, OPT_TEE,
41-
OPT_LOW_PRIORITY, OPT_AUTO_REPAIR, OPT_COMPRESS,
42-
OPT_DROP, OPT_LOCKS, OPT_KEYWORDS, OPT_DELAYED, OPT_OPTIMIZE,
43-
OPT_FTB, OPT_LTB, OPT_ENC, OPT_O_ENC, OPT_ESC, OPT_TABLES,
44-
OPT_MASTER_DATA, OPT_AUTOCOMMIT, OPT_AUTO_REHASH,
45-
OPT_LINE_NUMBERS, OPT_COLUMN_NAMES, OPT_CONNECT_TIMEOUT,
46-
OPT_MAX_ALLOWED_PACKET, OPT_NET_BUFFER_LENGTH,
47-
OPT_SELECT_LIMIT, OPT_MAX_JOIN_SIZE, OPT_SSL_SSL,
41+
OPT_OPTIMIZE,
42+
OPT_TABLES,
43+
OPT_MASTER_DATA,
4844
OPT_SSL_KEY, OPT_SSL_CERT, OPT_SSL_CA, OPT_SSL_CAPATH,
49-
OPT_SSL_CIPHER, OPT_TLS_VERSION, OPT_SHUTDOWN_TIMEOUT, OPT_LOCAL_INFILE,
50-
OPT_DELETE_MASTER_LOGS, OPT_COMPACT,
51-
OPT_PROMPT, OPT_IGN_LINES,OPT_TRANSACTION,OPT_MYSQL_PROTOCOL,
52-
OPT_FRM, OPT_SKIP_OPTIMIZATION,
53-
OPT_COMPATIBLE, OPT_RECONNECT, OPT_DELIMITER, OPT_SECURE_AUTH,
54-
OPT_OPEN_FILES_LIMIT, OPT_SET_CHARSET, OPT_SERVER_ARG,
55-
OPT_STOP_POSITION, OPT_START_DATETIME, OPT_STOP_DATETIME,
56-
OPT_SIGINT_IGNORE, OPT_HEXBLOB, OPT_ORDER_BY_PRIMARY, OPT_COUNT,
57-
OPT_FLUSH_TABLES,
58-
OPT_TRIGGERS,
59-
OPT_MYSQL_ONLY_PRINT,
60-
OPT_MYSQL_LOCK_DIRECTORY,
61-
OPT_USE_THREADS,
62-
OPT_IMPORT_USE_THREADS,
63-
OPT_MYSQL_NUMBER_OF_QUERY,
45+
OPT_SSL_CIPHER, OPT_LOCAL_INFILE,
46+
OPT_COMPACT,
47+
OPT_MYSQL_PROTOCOL,
48+
OPT_SKIP_OPTIMIZATION,
49+
OPT_COMPATIBLE, OPT_DELIMITER,
50+
OPT_SERVER_ARG,
51+
OPT_START_DATETIME, OPT_STOP_DATETIME,
6452
OPT_IGNORE_DATABASE,
65-
OPT_IGNORE_TABLE,OPT_INSERT_IGNORE,OPT_SHOW_WARNINGS,OPT_DROP_DATABASE,
66-
OPT_TZ_UTC, OPT_CREATE_SLAP_SCHEMA,
67-
OPT_MYSQLDUMP_SLAVE_APPLY,
53+
OPT_IGNORE_TABLE,
6854
OPT_MYSQLDUMP_SLAVE_DATA,
69-
OPT_MYSQLDUMP_INCLUDE_MASTER_HOST_PORT,
70-
#ifdef WHEN_FLASHBACK_REVIEW_READY
71-
OPT_REVIEW,
72-
OPT_REVIEW_DBNAME, OPT_REVIEW_TABLENAME,
73-
#endif
74-
OPT_SLAP_CSV, OPT_SLAP_CREATE_STRING,
75-
OPT_SLAP_AUTO_GENERATE_SQL_LOAD_TYPE, OPT_SLAP_AUTO_GENERATE_WRITE_NUM,
76-
OPT_SLAP_AUTO_GENERATE_ADD_AUTO,
77-
OPT_SLAP_AUTO_GENERATE_GUID_PRIMARY,
78-
OPT_SLAP_AUTO_GENERATE_EXECUTE_QUERIES,
79-
OPT_SLAP_AUTO_GENERATE_SECONDARY_INDEXES,
80-
OPT_SLAP_AUTO_GENERATE_UNIQUE_WRITE_NUM,
81-
OPT_SLAP_AUTO_GENERATE_UNIQUE_QUERY_NUM,
82-
OPT_SLAP_PRE_QUERY,
83-
OPT_SLAP_POST_QUERY,
84-
OPT_SLAP_PRE_SYSTEM,
85-
OPT_SLAP_POST_SYSTEM,
86-
OPT_SLAP_COMMIT,
87-
OPT_SLAP_DETACH,
88-
OPT_SLAP_NO_DROP,
89-
OPT_MYSQL_REPLACE_INTO, OPT_BASE64_OUTPUT_MODE, OPT_SERVER_ID,
90-
OPT_FIX_TABLE_NAMES, OPT_FIX_DB_NAMES, OPT_SSL_VERIFY_SERVER_CERT,
91-
OPT_AUTO_VERTICAL_OUTPUT,
92-
OPT_DEBUG_INFO, OPT_DEBUG_CHECK, OPT_COLUMN_TYPES, OPT_ERROR_LOG_FILE,
93-
OPT_WRITE_BINLOG, OPT_DUMP_DATE,
94-
OPT_INIT_COMMAND,
55+
OPT_SLAP_CSV,
56+
OPT_BASE64_OUTPUT_MODE,
57+
OPT_FIX_TABLE_NAMES, OPT_FIX_DB_NAMES,
58+
OPT_WRITE_BINLOG,
9559
OPT_PLUGIN_DIR,
9660
OPT_DEFAULT_AUTH,
97-
OPT_ABORT_SOURCE_ON_ERROR,
9861
OPT_REWRITE_DB,
99-
OPT_REPORT_PROGRESS,
100-
OPT_SKIP_ANNOTATE_ROWS_EVENTS,
10162
OPT_SSL_CRL, OPT_SSL_CRLPATH,
10263
OPT_IGNORE_DATA,
10364
OPT_PRINT_ROW_COUNT, OPT_PRINT_ROW_EVENT_POSITIONS,
10465
OPT_CHECK_IF_UPGRADE_NEEDED,
10566
OPT_COMPATIBILTY_CLEARTEXT_PLUGIN,
106-
OPT_SHUTDOWN_WAIT_FOR_SLAVES,
107-
OPT_COPY_S3_TABLES,
108-
OPT_PRINT_TABLE_METADATA,
109-
OPT_ASOF_TIMESTAMP,
67+
OPT_STOP_POSITION,
68+
OPT_SERVER_ID,
11069
OPT_IGNORE_DOMAIN_IDS,
11170
OPT_DO_DOMAIN_IDS,
11271
OPT_IGNORE_SERVER_IDS,

0 commit comments

Comments
 (0)