summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2023-01-10 14:42:50 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2023-01-10 14:42:50 +0200
commit92c8d6f168f329bf7e3998a4f580781d0239b59a (patch)
tree1105d2015a3a7b9e0bed740eaee027cd30e3b5c3 /debian
parent8bddaddc6fcd4f146252c2dc149ecbc51cd6c788 (diff)
parentab36eac584a0bef4a048a3fd8ae56ff2cbfcb6cc (diff)
downloadmariadb-git-92c8d6f168f329bf7e3998a4f580781d0239b59a.tar.gz
Merge 10.7 into 10.8
The MDEV-25004 test innodb_fts.versioning is omitted because ever since commit 685d958e38b825ad9829be311f26729cccf37c46 InnoDB would not allow writes to a database where the redo log file ib_logfile0 is missing.
Diffstat (limited to 'debian')
-rw-r--r--debian/additions/innotop/innotop2
-rwxr-xr-xdebian/additions/mariadb-report4
-rw-r--r--debian/mariadb-server-10.8.mariadb.init8
-rw-r--r--debian/mariadb-server-10.8.postinst2
-rw-r--r--debian/salsa-ci.yml2
-rw-r--r--debian/tests/smoke12
6 files changed, 18 insertions, 12 deletions
diff --git a/debian/additions/innotop/innotop b/debian/additions/innotop/innotop
index 5d81980341d..2bc090917fe 100644
--- a/debian/additions/innotop/innotop
+++ b/debian/additions/innotop/innotop
@@ -4933,7 +4933,7 @@ sub noecho_password {
};
if ( $EVAL_ERROR ) {
- die "Cannot read respose; is Term::ReadKey installed? $EVAL_ERROR";
+ die "Cannot read response; is Term::ReadKey installed? $EVAL_ERROR";
}
return $response;
}
diff --git a/debian/additions/mariadb-report b/debian/additions/mariadb-report
index ff73bb0e17e..b95f226b737 100755
--- a/debian/additions/mariadb-report
+++ b/debian/additions/mariadb-report
@@ -726,7 +726,7 @@ sub set_myisam_vals
{
print "set_myisam_vals\n" if $op{debug};
-# should be moved elsewere
+# should be moved elsewhere
$questions = $stats{'Questions'};
$key_read_ratio = sprintf "%.2f",
@@ -1376,7 +1376,7 @@ format QCACHE =
__ Query Cache _________________________________________________________
Memory usage @>>>>>> of @>>>>>> %Usage: @>>>>>
make_short($qc_mem_used, 1), make_short($vars{'query_cache_size'}, 1), perc($qc_mem_used, $vars{'query_cache_size'})
-Block Fragmnt @>>>>>%
+Block Fragment @>>>>>%
perc($stats{'Qcache_free_blocks'}, $stats{'Qcache_total_blocks'})
Hits @>>>>>> @>>>>>/s
make_short($stats{'Qcache_hits'}), t($stats{'Qcache_hits'})
diff --git a/debian/mariadb-server-10.8.mariadb.init b/debian/mariadb-server-10.8.mariadb.init
index aa06221a069..efbecd3b498 100644
--- a/debian/mariadb-server-10.8.mariadb.init
+++ b/debian/mariadb-server-10.8.mariadb.init
@@ -34,6 +34,12 @@ else
exit -1
fi
+if [ ! -x /usr/bin/mariadbd-safe ]
+then
+ log_failure_msg "/usr/bin/mariadbd-safe not found or executable! This SysV init script depends on it."
+ exit -1
+fi
+
# priority can be overridden and "-s" adds output to stderr
ERR_LOGGER="logger -p daemon.err -t /etc/init.d/mariadb -i"
@@ -127,7 +133,7 @@ case "${1:-''}" in
test -e /run/mysqld || install -m 755 -o mysql -g root -d /run/mysqld
# Start MariaDB!
- /usr/bin/mysqld_safe "${@:2}" 2>&1 >/dev/null | $ERR_LOGGER &
+ /usr/bin/mariadbd-safe "${@:2}" 2>&1 >/dev/null | $ERR_LOGGER &
for i in $(seq 1 "${MYSQLD_STARTUP_TIMEOUT:-30}"); do
sleep 1
diff --git a/debian/mariadb-server-10.8.postinst b/debian/mariadb-server-10.8.postinst
index 32134941cd7..a259a50ac55 100644
--- a/debian/mariadb-server-10.8.postinst
+++ b/debian/mariadb-server-10.8.postinst
@@ -155,7 +155,7 @@ EOF
# This is important to avoid dataloss when there is a removed
# mysql-server version from Woody lying around which used the same
- # data directory and then somewhen gets purged by the admin.
+ # data directory and then somehow gets purged by the admin.
db_set mariadb-server/postrm_remove_database false || true
# Clean up old flags before setting new one
diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml
index c6d58829b3e..7332b9bbcf1 100644
--- a/debian/salsa-ci.yml
+++ b/debian/salsa-ci.yml
@@ -402,7 +402,7 @@ build mariadbclient consumer Python-MySQLdb:
image: debian:${RELEASE}
script:
- *test-prepare-container
- # Run each step separately to avoitda 800+ lines chunk that lacks the
+ # Run each step separately to avoid an 800+ line chunk that lacks the
# commands themselves printed and Gitlab-CI cutting off the output
- apt-get install -y pkg-config ./libmariadb-dev*.deb ./libmariadb3_*.deb ./mariadb-common*.deb
- pkg-config --cflags --libs mysqlclient # See what MySQLdb builds with
diff --git a/debian/tests/smoke b/debian/tests/smoke
index 07dc3df1948..9e001f9692f 100644
--- a/debian/tests/smoke
+++ b/debian/tests/smoke
@@ -45,28 +45,28 @@ else
systemctl restart mariadb
fi
-mysql <<EOT
+mariadb <<EOT
CREATE DATABASE testdatabase;
CREATE USER 'testuser'@'localhost' identified by 'testpassword';
GRANT ALL ON testdatabase.* TO 'testuser'@'localhost';
EOT
-mysql testdatabase <<EOT
+mariadb testdatabase <<EOT
CREATE TABLE foo (bar INTEGER);
INSERT INTO foo (bar) VALUES (41);
EOT
-result=$(echo 'SELECT bar+1 FROM foo;'|mysql --batch --skip-column-names --user=testuser --password=testpassword testdatabase)
+result=$(echo 'SELECT bar+1 FROM foo;'|mariadb --batch --skip-column-names --user=testuser --password=testpassword testdatabase)
if [ "$result" != "42" ]; then
echo "Unexpected result" >&2
exit 1
fi
-mysql --user=testuser --password=testpassword testdatabase <<EOT
+mariadb --user=testuser --password=testpassword testdatabase <<EOT
DROP TABLE foo;
EOT
-mysql <<EOT
+mariadb <<EOT
DROP DATABASE testdatabase;
DROP USER 'testuser'@'localhost';
EOT
@@ -94,7 +94,7 @@ if [ "$(dpkg-architecture -qDEB_HOST_ARCH_BITS)" != 32 ] &&
LOG=/var/lib/mysql/#rocksdb/LOG
# XXX: The server may only be started during the install of
# mariadb-server-10.8, which happens before that of the plugin.
- [ -e $LOG ] || mysql -e "INSTALL PLUGIN RocksDB SONAME 'ha_rocksdb';"
+ [ -e $LOG ] || mariadb -e "INSTALL PLUGIN RocksDB SONAME 'ha_rocksdb';"
# XXX: rocksdb_supported_compression_types variable does not report ZSTD.
# Print RocksDB supported items so test log is easier to debug