Skip to content

Commit 92c8d6f

Browse files
committed
Merge 10.7 into 10.8
The MDEV-25004 test innodb_fts.versioning is omitted because ever since commit 685d958 InnoDB would not allow writes to a database where the redo log file ib_logfile0 is missing.
2 parents 8bddadd + ab36eac commit 92c8d6f

File tree

201 files changed

+3246
-2325
lines changed

Some content is hidden

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

201 files changed

+3246
-2325
lines changed

.gitlab-ci.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ variables:
7171
echo "$package"
7272
rpm -qlpv "$package" | awk '{print $1 " " $3 "/" $4 " ." $9 " " $10 " " $11}' | sort -k 3
7373
echo "------------------------------------------------"
74-
done >> ../rpmlist-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG.log
74+
done >> "../rpmlist-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG.log"
7575
# CPackRPM lists contents in build log, so no need to show the output of this,
7676
# just store it as a build artifact that can be downloaded and diffed against
7777
# other builds to detect which files where added/removed/moved
@@ -182,7 +182,7 @@ fedora-sanitizer:
182182
GIT_SUBMODULE_STRATEGY: normal
183183
script:
184184
- yum install -y yum-utils rpm-build openssl-devel clang
185-
- yum install -y /usr/lib64/libasan.so.6.0.0 /usr/lib64/libtsan.so.0.0.0 /usr/lib64/libubsan.so.1.0.0
185+
- yum install -y libasan libtsan libubsan
186186
# This repository does not have any .spec files, so install dependencies based on Fedora spec file
187187
- yum-builddep -y mariadb-server
188188
- mkdir builddir; cd builddir
@@ -305,6 +305,8 @@ mysql-test-run:
305305
stage: test
306306
dependencies:
307307
- fedora
308+
needs:
309+
- fedora
308310
<<: *mysql-test-run-def
309311
artifacts:
310312
when: always # Also show results when tests fail
@@ -326,6 +328,8 @@ mysql-test-run-asan:
326328
RESTART_POLICY: "--force-restart"
327329
dependencies:
328330
- "fedora-sanitizer: [-DWITH_ASAN=YES]"
331+
needs:
332+
- "fedora-sanitizer: [-DWITH_ASAN=YES]"
329333
<<: *mysql-test-run-def
330334
artifacts:
331335
when: always # Also show results when tests fail
@@ -339,6 +343,8 @@ mysql-test-run-tsan:
339343
RESTART_POLICY: "--force-restart"
340344
dependencies:
341345
- "fedora-sanitizer: [-DWITH_TSAN=YES]"
346+
needs:
347+
- "fedora-sanitizer: [-DWITH_TSAN=YES]"
342348
<<: *mysql-test-run-def
343349
allow_failure: true
344350
artifacts:
@@ -353,6 +359,8 @@ mysql-test-run-ubsan:
353359
RESTART_POLICY: "--force-restart"
354360
dependencies:
355361
- "fedora-sanitizer: [-DWITH_UBSAN=YES]"
362+
needs:
363+
- "fedora-sanitizer: [-DWITH_UBSAN=YES]"
356364
<<: *mysql-test-run-def
357365
allow_failure: true
358366
artifacts:
@@ -367,6 +375,8 @@ mysql-test-run-msan:
367375
RESTART_POLICY: "--force-restart"
368376
dependencies:
369377
- "fedora-sanitizer: [-DWITH_MSAN=YES]"
378+
needs:
379+
- "fedora-sanitizer: [-DWITH_MSAN=YES]"
370380
<<: *mysql-test-run-def
371381
allow_failure: true
372382
artifacts:
@@ -379,6 +389,8 @@ rpmlint:
379389
stage: test
380390
dependencies:
381391
- fedora
392+
needs:
393+
- fedora
382394
script:
383395
- yum install -y rpmlint
384396
- rm -f rpm/*debuginfo* # Not relevant in this test
@@ -396,6 +408,8 @@ fedora install:
396408
stage: test
397409
dependencies:
398410
- fedora
411+
needs:
412+
- fedora
399413
script:
400414
- rm -f rpm/*debuginfo* # Not relevant in this test
401415
# Nothing provides galera-4 on Fedora, so this step fails if built with wsrep
@@ -429,6 +443,8 @@ fedora upgrade:
429443
stage: test
430444
dependencies:
431445
- fedora
446+
needs:
447+
- fedora
432448
script:
433449
- dnf install -y mariadb-server
434450
# Fedora does not support running services in Docker (like Debian packages do) so start it manually

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
[submodule "libmariadb"]
22
path = libmariadb
33
url = https://github.com/MariaDB/mariadb-connector-c.git
4+
ignore = all
45
[submodule "storage/rocksdb/rocksdb"]
56
path = storage/rocksdb/rocksdb
67
url = https://github.com/facebook/rocksdb.git
8+
ignore = all
79
[submodule "wsrep-lib"]
810
path = wsrep-lib
911
url = https://github.com/codership/wsrep-lib.git
1012
branch = master
13+
ignore = all
1114
[submodule "extra/wolfssl/wolfssl"]
1215
path = extra/wolfssl/wolfssl
1316
url = https://github.com/wolfSSL/wolfssl.git
17+
ignore = all
1418
[submodule "storage/maria/libmarias3"]
1519
path = storage/maria/libmarias3
1620
url = https://github.com/mariadb-corporation/libmarias3.git
21+
ignore = all
1722
[submodule "storage/columnstore/columnstore"]
1823
path = storage/columnstore/columnstore
1924
url = https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
25+
ignore = all

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ IF (WITH_MSAN)
236236
MY_CHECK_AND_SET_COMPILER_FLAG("-fsanitize=memory -fsanitize-memory-track-origins -U_FORTIFY_SOURCE" DEBUG RELWITHDEBINFO)
237237
ENDIF()
238238

239-
OPTION(WITH_GPROF "Enable profilingg with gprof" OFF)
239+
OPTION(WITH_GPROF "Enable profiling with gprof" OFF)
240240
IF (WITH_GPROF)
241241
MY_CHECK_AND_SET_COMPILER_FLAG("-pg -g -no-pie -fPIC")
242242
ENDIF()

cmake/install_macros.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ SET(DEBUGBUILDDIR "${BINARY_PARENTDIR}/debug" CACHE INTERNAL "Directory of debug
266266
FUNCTION(INSTALL_MYSQL_TEST from to)
267267
IF(INSTALL_MYSQLTESTDIR)
268268
IF(NOT WITH_WSREP)
269-
SET(EXCL_GALERA "(suite/(galera|wsrep|sys_vars/[rt]/(sysvars_)?wsrep).*|include/((w.*)?wsrep.*|.*galera.*)\\.inc|std_data/(galera|wsrep).*)")
269+
SET(EXCL_GALERA "(suite/(galera|wsrep|sys_vars/[rt]/(sysvars_)?wsrep).*|std_data/(galera|wsrep).*)")
270270
ELSE()
271271
SET(EXCL_GALERA "^DOES_NOT_EXIST$")
272272
ENDIF()

debian/additions/innotop/innotop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4933,7 +4933,7 @@ sub noecho_password {
49334933
};
49344934

49354935
if ( $EVAL_ERROR ) {
4936-
die "Cannot read respose; is Term::ReadKey installed? $EVAL_ERROR";
4936+
die "Cannot read response; is Term::ReadKey installed? $EVAL_ERROR";
49374937
}
49384938
return $response;
49394939
}

debian/additions/mariadb-report

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ sub set_myisam_vals
726726
{
727727
print "set_myisam_vals\n" if $op{debug};
728728

729-
# should be moved elsewere
729+
# should be moved elsewhere
730730
$questions = $stats{'Questions'};
731731

732732
$key_read_ratio = sprintf "%.2f",
@@ -1376,7 +1376,7 @@ format QCACHE =
13761376
__ Query Cache _________________________________________________________
13771377
Memory usage @>>>>>> of @>>>>>> %Usage: @>>>>>
13781378
make_short($qc_mem_used, 1), make_short($vars{'query_cache_size'}, 1), perc($qc_mem_used, $vars{'query_cache_size'})
1379-
Block Fragmnt @>>>>>%
1379+
Block Fragment @>>>>>%
13801380
perc($stats{'Qcache_free_blocks'}, $stats{'Qcache_total_blocks'})
13811381
Hits @>>>>>> @>>>>>/s
13821382
make_short($stats{'Qcache_hits'}), t($stats{'Qcache_hits'})

debian/mariadb-server-10.8.mariadb.init

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ else
3434
exit -1
3535
fi
3636

37+
if [ ! -x /usr/bin/mariadbd-safe ]
38+
then
39+
log_failure_msg "/usr/bin/mariadbd-safe not found or executable! This SysV init script depends on it."
40+
exit -1
41+
fi
42+
3743
# priority can be overridden and "-s" adds output to stderr
3844
ERR_LOGGER="logger -p daemon.err -t /etc/init.d/mariadb -i"
3945

@@ -127,7 +133,7 @@ case "${1:-''}" in
127133
test -e /run/mysqld || install -m 755 -o mysql -g root -d /run/mysqld
128134

129135
# Start MariaDB!
130-
/usr/bin/mysqld_safe "${@:2}" 2>&1 >/dev/null | $ERR_LOGGER &
136+
/usr/bin/mariadbd-safe "${@:2}" 2>&1 >/dev/null | $ERR_LOGGER &
131137

132138
for i in $(seq 1 "${MYSQLD_STARTUP_TIMEOUT:-30}"); do
133139
sleep 1

debian/mariadb-server-10.8.postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ EOF
155155

156156
# This is important to avoid dataloss when there is a removed
157157
# mysql-server version from Woody lying around which used the same
158-
# data directory and then somewhen gets purged by the admin.
158+
# data directory and then somehow gets purged by the admin.
159159
db_set mariadb-server/postrm_remove_database false || true
160160

161161
# Clean up old flags before setting new one

debian/salsa-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ build mariadbclient consumer Python-MySQLdb:
402402
image: debian:${RELEASE}
403403
script:
404404
- *test-prepare-container
405-
# Run each step separately to avoitda 800+ lines chunk that lacks the
405+
# Run each step separately to avoid an 800+ line chunk that lacks the
406406
# commands themselves printed and Gitlab-CI cutting off the output
407407
- apt-get install -y pkg-config ./libmariadb-dev*.deb ./libmariadb3_*.deb ./mariadb-common*.deb
408408
- pkg-config --cflags --libs mysqlclient # See what MySQLdb builds with

debian/tests/smoke

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,28 +45,28 @@ else
4545
systemctl restart mariadb
4646
fi
4747

48-
mysql <<EOT
48+
mariadb <<EOT
4949
CREATE DATABASE testdatabase;
5050
CREATE USER 'testuser'@'localhost' identified by 'testpassword';
5151
GRANT ALL ON testdatabase.* TO 'testuser'@'localhost';
5252
EOT
5353

54-
mysql testdatabase <<EOT
54+
mariadb testdatabase <<EOT
5555
CREATE TABLE foo (bar INTEGER);
5656
INSERT INTO foo (bar) VALUES (41);
5757
EOT
5858

59-
result=$(echo 'SELECT bar+1 FROM foo;'|mysql --batch --skip-column-names --user=testuser --password=testpassword testdatabase)
59+
result=$(echo 'SELECT bar+1 FROM foo;'|mariadb --batch --skip-column-names --user=testuser --password=testpassword testdatabase)
6060
if [ "$result" != "42" ]; then
6161
echo "Unexpected result" >&2
6262
exit 1
6363
fi
6464

65-
mysql --user=testuser --password=testpassword testdatabase <<EOT
65+
mariadb --user=testuser --password=testpassword testdatabase <<EOT
6666
DROP TABLE foo;
6767
EOT
6868

69-
mysql <<EOT
69+
mariadb <<EOT
7070
DROP DATABASE testdatabase;
7171
DROP USER 'testuser'@'localhost';
7272
EOT
@@ -94,7 +94,7 @@ if [ "$(dpkg-architecture -qDEB_HOST_ARCH_BITS)" != 32 ] &&
9494
LOG=/var/lib/mysql/#rocksdb/LOG
9595
# XXX: The server may only be started during the install of
9696
# mariadb-server-10.8, which happens before that of the plugin.
97-
[ -e $LOG ] || mysql -e "INSTALL PLUGIN RocksDB SONAME 'ha_rocksdb';"
97+
[ -e $LOG ] || mariadb -e "INSTALL PLUGIN RocksDB SONAME 'ha_rocksdb';"
9898
# XXX: rocksdb_supported_compression_types variable does not report ZSTD.
9999

100100
# Print RocksDB supported items so test log is easier to debug

0 commit comments

Comments
 (0)