Skip to content

Commit f21444c

Browse files
committed
Merge branch '11.4' into 11.8
2 parents 17cc6b3 + 2340857 commit f21444c

305 files changed

Lines changed: 7769 additions & 1706 deletions

File tree

Some content is hidden

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

‎.github/pull_request_template.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ TODO: fill description here
2222

2323
## Release Notes
2424
TODO: What should the release notes say about this change?
25-
Include any changed system variables, status variables or behaviour. Optionally list any https://mariadb.com/kb/ pages that need changing.
25+
Include any changed system variables, status variables or behaviour. Optionally list any https://mariadb.com/docs/ pages that need changing.
2626

2727
## How can this PR be tested?
2828

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ support-files/mariadb-extra.socket
270270
support-files/mariadb@.service
271271
support-files/mariadb@.socket
272272
support-files/mariadb-extra@.socket
273+
support-files/mariadb-plugin-config.cmake
274+
support-files/mariadb-plugin-defines.cmake
273275
support-files/mini-benchmark
274276
support-files/my-huge.cnf
275277
support-files/my-innodb-heavy-4G.cnf

‎CMakeLists.txt‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Copyright (c) 2006, 2017, Oracle and/or its affiliates.
2-
# Copyright (c) 2008, 2022, MariaDB Corporation.
2+
# Copyright (c) 2008, 2026, MariaDB Corporation.
33
#
44
# This program is free software; you can redistribute it and/or modify
55
# it under the terms of the GNU General Public License as published by
@@ -487,7 +487,18 @@ SET(PYTHON_SHEBANG "/usr/bin/env python3" CACHE STRING "python shebang")
487487
MARK_AS_ADVANCED(PYTHON_SHEBANG)
488488

489489
# Add storage engines and plugins.
490-
CONFIGURE_PLUGINS()
490+
IF(NOT WITHOUT_SERVER)
491+
FILE(GLOB dirs_storage ${CMAKE_SOURCE_DIR}/storage/*)
492+
ENDIF()
493+
494+
FILE(GLOB dirs_plugin ${CMAKE_SOURCE_DIR}/plugin/*)
495+
FOREACH(dir ${dirs_storage} ${dirs_plugin})
496+
IF (EXISTS ${dir}/CMakeLists.txt)
497+
ADD_SUBDIRECTORY(${dir})
498+
ENDIF()
499+
ENDFOREACH()
500+
501+
VERIFY_PLUGINS()
491502

492503
ADD_SUBDIRECTORY(include)
493504
ADD_SUBDIRECTORY(dbug)

‎appveyor.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ build_script:
5757
- set PATH=%OPENSSL_ROOT_DIR%;%PATH%
5858
- set GENERATOR=-GNinja
5959
- call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
60-
- cmake -E time cmake %GENERATOR% .. -DWITH_SSL=system -DHAVE_OPENSSL_APPLINK_C=1 -DOPENSSL_ROOT_DIR=%OPENSSL_ROOT_DIR% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DMYSQL_MAINTAINER_MODE=ERR -DFAST_BUILD=1 -DBISON_EXECUTABLE=C:\cygwin64\bin\bison.exe -DPLUGIN_PERFSCHEMA=NO -DPLUGIN_FEEDBACK=NO
60+
- cmake -E time cmake %GENERATOR% .. -DWITH_SSL=system -DHAVE_OPENSSL_APPLINK_C=1 -DOPENSSL_ROOT_DIR=%OPENSSL_ROOT_DIR% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DMYSQL_MAINTAINER_MODE=ERR -DFAST_BUILD=1 -DBISON_EXECUTABLE=C:\cygwin64\bin\bison.exe -DPLUGIN_PERFSCHEMA=NO -DPLUGIN_FEEDBACK=NO -DPLUGIN_ROCKSDB=NO
6161
- set /A jobs=2*%NUMBER_OF_PROCESSORS%
6262
- cmake -E time cmake --build . -j %jobs% --config %BUILD_TYPE% --target minbuild
6363

‎client/mysqladmin.cc‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ static bool sql_log_bin_off= false;
5050
static uint opt_protocol=0;
5151
static myf error_flags; /* flags to pass to my_printf_error, like ME_BELL */
5252

53-
static my_bool ex_status_printed = 0; /* First output is not relative. */
54-
5553
#include <sslopt-vars.h>
5654

5755
static void print_version(void);
@@ -928,7 +926,6 @@ static int execute_commands(MYSQL *mysql,int argc, char **argv)
928926
(*func)(res, row, rownr++);
929927
print_top(res);
930928

931-
ex_status_printed = 1; /* From now on the output will be relative */
932929
mysql_free_result(res);
933930
break;
934931
}

‎client/mysqlbinlog.cc‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ static my_bool print_row_count_used= 0, print_row_event_positions_used= 0;
127127
static my_bool debug_info_flag, debug_check_flag;
128128
static my_bool force_if_open_opt= 1;
129129
static my_bool opt_raw_mode= 0, opt_stop_never= 0;
130-
my_bool opt_gtid_strict_mode= true;
130+
my_bool opt_gtid_strict_mode= false;
131131
static ulong opt_stop_never_slave_server_id= 0;
132132
static my_bool opt_verify_binlog_checksum= 1;
133133
static ulonglong offset = 0;
@@ -1645,7 +1645,7 @@ static struct my_option my_options[] =
16451645
"start < stop comparison condition. Sequence numbers of any gtid domain "
16461646
"must comprise monotically growing sequence",
16471647
&opt_gtid_strict_mode, &opt_gtid_strict_mode, 0,
1648-
GET_BOOL, NO_ARG, 1, 0, 0, 0, 0, 0},
1648+
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
16491649
{"stop-datetime", OPT_STOP_DATETIME,
16501650
"Stop reading the binlog at first event having a datetime equal or "
16511651
"posterior to the argument; the argument must be a date and time "

‎cmake/install_macros.cmake‎

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -300,36 +300,3 @@ ENDFUNCTION()
300300
# For Makefile generators we default Debug build directory to ${buildroot}/../debug.
301301
GET_FILENAME_COMPONENT(BINARY_PARENTDIR ${CMAKE_BINARY_DIR} PATH)
302302
SET(DEBUGBUILDDIR "${BINARY_PARENTDIR}/debug" CACHE INTERNAL "Directory of debug build")
303-
304-
FUNCTION(INSTALL_MYSQL_TEST from to)
305-
IF(INSTALL_MYSQLTESTDIR)
306-
IF(NOT WITH_WSREP)
307-
SET(EXCL_GALERA "(suite/(galera|wsrep|sys_vars/[rt]/(sysvars_)?wsrep).*|std_data/(galera|wsrep).*)")
308-
ELSE()
309-
SET(EXCL_GALERA "^DOES_NOT_EXIST$")
310-
ENDIF()
311-
INSTALL(
312-
DIRECTORY ${from}
313-
DESTINATION "${INSTALL_MYSQLTESTDIR}/${to}"
314-
USE_SOURCE_PERMISSIONS
315-
COMPONENT Test
316-
PATTERN "var" EXCLUDE
317-
PATTERN "lib/My/SafeProcess" EXCLUDE
318-
PATTERN "lib/t*" EXCLUDE
319-
PATTERN "CPack" EXCLUDE
320-
PATTERN "CMake*" EXCLUDE
321-
PATTERN "cmake_install.cmake" EXCLUDE
322-
PATTERN "mtr.out*" EXCLUDE
323-
PATTERN ".cvsignore" EXCLUDE
324-
PATTERN "*.am" EXCLUDE
325-
PATTERN "*.in" EXCLUDE
326-
PATTERN "Makefile" EXCLUDE
327-
PATTERN "*.vcxproj" EXCLUDE
328-
PATTERN "*.vcxproj.filters" EXCLUDE
329-
PATTERN "*.vcxproj.user" EXCLUDE
330-
PATTERN "CTest*" EXCLUDE
331-
PATTERN "*~" EXCLUDE
332-
REGEX "${EXCL_GALERA}" EXCLUDE
333-
)
334-
ENDIF()
335-
ENDFUNCTION()

‎cmake/make_dist.cmake.in‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ IF(NOT GIT_EXECUTABLE)
107107
)
108108
ENDIF()
109109

110+
# DuckDB uses these symbolic links only to test globbing behavior. They cause
111+
# source package extraction failures with tar on Windows.
112+
FILE(REMOVE
113+
"${PACKAGE_DIR}/storage/duckdb/third_parties/duckdb/data/csv/glob/crawl/.symbolic_link/link_to_file"
114+
"${PACKAGE_DIR}/storage/duckdb/third_parties/duckdb/data/csv/glob/crawl/.symbolic_link/mydir/link_to_upper_dir"
115+
)
116+
110117
# Copy bison output
111118
CONFIGURE_FILE(${CMAKE_BINARY_DIR}/sql/yy_mariadb.hh
112119
${PACKAGE_DIR}/sql/yy_mariadb.hh COPYONLY)

‎cmake/mysql_add_executable.cmake‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,11 @@ FUNCTION (MYSQL_ADD_EXECUTABLE)
9898
IF(link)
9999
IF(UNIX)
100100
ADD_CUSTOM_COMMAND(TARGET ${target} POST_BUILD
101-
COMMAND ${CMAKE_COMMAND} -E create_symlink
102-
${target} ${link}
101+
COMMAND ${CMAKE_COMMAND} -E create_symlink ${target} ${link}
103102
COMMENT "Creating ${link} link"
104-
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR})
105-
INSTALL(PROGRAMS
106-
${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${link}
107-
DESTINATION
108-
${ARG_DESTINATION}
103+
WORKING_DIRECTORY $<TARGET_FILE_DIR:${target}>/)
104+
INSTALL(PROGRAMS $<TARGET_FILE_DIR:${target}>/${link}
105+
DESTINATION ${ARG_DESTINATION}
109106
COMPONENT ${COMP}Symlinks)
110107
ELSE()
111108
# Windows note:

0 commit comments

Comments
 (0)