Skip to content

Commit 5b30c78

Browse files
committed
Merge branch '10.2' of github.com:MariaDB/server into bb-10.2-mariarocks
2 parents 5c1c2f6 + eded624 commit 5b30c78

File tree

1,755 files changed

+63581
-53638
lines changed

Some content is hidden

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

1,755 files changed

+63581
-53638
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*.reject
44
*.spec
55
*.bak
6+
*.dgcov
67
*.rpm
78
.*.swp
89
*.ninja
@@ -50,6 +51,7 @@ extra/jemalloc/build/
5051
extra/jemalloc/tmp/
5152
extra/my_print_defaults
5253
extra/mysql_waitpid
54+
extra/mysqld_safe_helper
5355
extra/perror
5456
extra/replace
5557
extra/resolve_stack_dump
@@ -80,6 +82,9 @@ mysql-test/lib/My/SafeProcess/my_safe_process
8082
mysql-test/mtr
8183
mysql-test/mysql-test-run
8284
mysql-test/var
85+
mysql-test-gcov.err
86+
mysql-test-gcov.msg
87+
mysys/test_hash
8388
mysys/thr_lock
8489
mysys/thr_timer
8590
packaging/rpm-oel/mysql.spec
@@ -223,6 +228,7 @@ support-files/mysql.spec
223228
support-files/mysqld_multi.server
224229
support-files/wsrep.cnf
225230
support-files/wsrep_notify
231+
support-files/policy/selinux/mysqld-safe.pp
226232
tags
227233
tests/async_queries
228234
tests/bug25714

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ cache:
1414

1515
env:
1616
matrix:
17+
- GCC_VERSION=4.8
1718
- GCC_VERSION=5
1819
- GCC_VERSION=6
1920
addons:

BUILD/FINISH.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ then
3232
configure="$configure --verbose"
3333
fi
3434

35+
# git clean -fdX removes all ignored (build) files
3536
commands="\
36-
/bin/rm -rf configure;
37-
/bin/rm -rf CMakeCache.txt CMakeFiles/
37+
git clean -fdX
3838
3939
path=`dirname $0`
4040
. \"$path/autorun.sh\""

BUILD/SETUP.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Usage: $0 [-h|-n] [configure-options]
4242
Influences the debug flags. Old is default.
4343
--prefix=path Build with prefix 'path'.
4444
45-
Note: this script is intended for internal use by MySQL developers.
45+
Note: this script is intended for internal use by MariaDB developers.
4646
EOF
4747
}
4848

@@ -120,10 +120,9 @@ path=`dirname $0`
120120
get_make_parallel_flag
121121

122122
# SSL library to use.--with-ssl will select our bundled yaSSL
123-
# implementation of SSL. To use OpenSSL you will need to specify
124-
# the location of OpenSSL headers and libs on your system.
125-
# Ex --with-ssl=/usr
126-
SSL_LIBRARY=--with-ssl
123+
# implementation of SSL. --with-ssl=yes will first try system library
124+
# then the boundled one --with-ssl=system will use the system library.
125+
SSL_LIBRARY=--with-ssl=system
127126

128127
if [ "x$warning_mode" = "xpedantic" ]; then
129128
warnings="-W -Wall -ansi -pedantic -Wno-long-long -Wno-unused -D_POSIX_SOURCE"
@@ -293,7 +292,7 @@ gcov_compile_flags="$gcov_compile_flags -DMYSQL_SERVER_SUFFIX=-gcov -DHAVE_gcov"
293292
# GCC4 needs -fprofile-arcs -ftest-coverage on the linker command line (as well
294293
# as on the compiler command line), and this requires setting LDFLAGS for BDB.
295294

296-
gcov_link_flags="-fprofile-arcs -ftest-coverage"
295+
gcov_link_flags="-fprofile-arcs -ftest-coverage -lgcov"
297296

298297
gcov_configs="--with-gcov"
299298

BUILD/compile-pentium64-gcov

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ export LDFLAGS="$gcov_link_flags"
2828
extra_flags="$pentium64_cflags $max_cflags $gcov_compile_flags"
2929
c_warnings="$c_warnings $debug_extra_warnings"
3030
cxx_warnings="$cxx_warnings $debug_extra_warnings"
31-
extra_configs="$pentium_configs $debug_configs $gcov_configs $max_configs --with-zlib-dir=bundled"
31+
extra_configs="$pentium_configs $debug_configs $gcov_configs $max_configs"
3232

3333
. "$path/FINISH.sh"

CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -183,18 +183,18 @@ INCLUDE(check_compiler_flag)
183183
OPTION(WITH_ASAN "Enable address sanitizer" OFF)
184184
IF (WITH_ASAN)
185185
# gcc 4.8.1 and new versions of clang
186-
MY_CHECK_AND_SET_COMPILER_FLAG("-fsanitize=address -O1 -Wno-error -fPIC"
186+
MY_CHECK_AND_SET_COMPILER_FLAG("-fsanitize=address -fPIC"
187187
DEBUG RELWITHDEBINFO)
188-
SET(HAVE_C_FSANITIZE ${HAVE_C__fsanitize_address__O1__Wno_error__fPIC})
189-
SET(HAVE_CXX_FSANITIZE ${HAVE_CXX__fsanitize_address__O1__Wno_error__fPIC})
188+
SET(HAVE_C_FSANITIZE ${have_C__fsanitize_address__fPIC})
189+
SET(HAVE_CXX_FSANITIZE ${have_CXX__fsanitize_address__fPIC})
190190
IF(HAVE_C_FSANITIZE AND HAVE_CXX_FSANITIZE)
191191
SET(WITH_ASAN_OK 1)
192192
ELSE()
193193
# older versions of clang
194-
MY_CHECK_AND_SET_COMPILER_FLAG("-faddress-sanitizer -O1 -fPIC"
194+
MY_CHECK_AND_SET_COMPILER_FLAG("-faddress-sanitizer -fPIC"
195195
DEBUG RELWITHDEBINFO)
196-
SET(HAVE_C_FADDRESS ${HAVE_C__faddress_sanitizer__O1__fPIC})
197-
SET(HAVE_CXX_FADDRESS ${HAVE_CXX__faddress_sanitizer__O1__fPIC})
196+
SET(HAVE_C_FADDRESS ${have_C__faddress_sanitizer__fPIC})
197+
SET(HAVE_CXX_FADDRESS ${have_CXX__faddress_sanitizer__fPIC})
198198
IF(HAVE_C_FADDRESS AND HAVE_CXX_FADDRESS)
199199
SET(WITH_ASAN_OK 1)
200200
ENDIF()
@@ -274,7 +274,7 @@ ENDIF()
274274

275275
# Set commonly used variables
276276
IF(WIN32)
277-
SET(DEFAULT_MYSQL_HOME "C:/MariaDB${MYSQL_BASE_VERSION}")
277+
SET(DEFAULT_MYSQL_HOME "C:/Program Files/MariaDB ${MYSQL_BASE_VERSION}")
278278
SET(SHAREDIR share)
279279
ELSE()
280280
SET(DEFAULT_MYSQL_HOME ${CMAKE_INSTALL_PREFIX})

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
MYSQL_VERSION_MAJOR=10
22
MYSQL_VERSION_MINOR=2
3-
MYSQL_VERSION_PATCH=4
3+
MYSQL_VERSION_PATCH=5

client/client_priv.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ enum options_client
6666
OPT_MYSQLDUMP_SLAVE_APPLY,
6767
OPT_MYSQLDUMP_SLAVE_DATA,
6868
OPT_MYSQLDUMP_INCLUDE_MASTER_HOST_PORT,
69+
#ifdef WHEN_FLASHBACK_REVIEW_READY
70+
OPT_REVIEW,
71+
OPT_REVIEW_DBNAME, OPT_REVIEW_TABLENAME,
72+
#endif
6973
OPT_SLAP_CSV, OPT_SLAP_CREATE_STRING,
7074
OPT_SLAP_AUTO_GENERATE_SQL_LOAD_TYPE, OPT_SLAP_AUTO_GENERATE_WRITE_NUM,
7175
OPT_SLAP_AUTO_GENERATE_ADD_AUTO,

client/mysqladmin.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,8 +1571,10 @@ static my_bool get_pidfile(MYSQL *mysql, char *pidfile)
15711571

15721572
if (mysql_query(mysql, "SHOW VARIABLES LIKE 'pid_file'"))
15731573
{
1574-
my_printf_error(0, "query failed; error: '%s'", error_flags,
1575-
mysql_error(mysql));
1574+
my_printf_error(mysql_errno(mysql),
1575+
"The query to get the server's pid file failed,"
1576+
" error: '%s'. Continuing.", error_flags,
1577+
mysql_error(mysql));
15761578
}
15771579
result = mysql_store_result(mysql);
15781580
if (result)

0 commit comments

Comments
 (0)