maria:st-10.2-danielblack-MDEV-27279-mariadb-upgrade-check-if-needed

Last commit made on 2021-12-16
Get this branch:
git clone -b st-10.2-danielblack-MDEV-27279-mariadb-upgrade-check-if-needed https://git.launchpad.net/maria

Branch merges

Branch information

Name:
st-10.2-danielblack-MDEV-27279-mariadb-upgrade-check-if-needed
Repository:
lp:maria

Recent commits

3952d6c... by Daniel Black

MDEV-27107: mariadb-upgrade exclusive locks on info_file

Work in progress. File modes aren't totally right
a second instance aborts with

client/mysql_upgrade: Can't create/write to file '/tmp/build-mariadb-server-10.2-datadir/mysql_upgrade_info' (Errcode: 17 "File exists")

6bb3fbd... by Daniel Black

MDEV-27279: mariadb_upgrade add --check-if-upgrade option

Under this option, we just return 0 if an upgrade is needed.

If we can't determine the version, or the version is a major
version behind, we return 1.

As mariadb-upgrades on major version upgrades are not needed
we restrict the version check to the the 10.X version.

136bcfd... by Sergey Petrunia

MDEV-27270: Wrong query plan with Range Checked for Each Record and ORDER BY ... LIMIT

Followup to fix for MDEV-25858: When test_if_skip_sort_order() decides
to use an index to satisfy ORDER BY ... LIMIT clause, it should
disable "Range Checked for Each Record" optimization.

Do this in all cases.

f1ca949... by Jan Lindström

Disable following tests from galera_3nodes suite

* galera_pc_bootstrap
* galera_ipv6_mariabackup
* galera_ipv6_mariabackup_section
* galera_ipv6_rsync
* galera_ipv6_rsync_section
* galera_ssl_reload
* galera_toi_vote
* galera_wsrep_schema_init

because MTR sporadaically fails: Failed to start mysqld or mysql_shutdown failed

ef9517e... by Marko Mäkelä

MDEV-27268 Failed InnoDB initialization leaves garbage files behind

create_log_files(): Check log_set_capacity() before modifying
or creating any log files.

innobase_start_or_create_for_mysql(): If create_log_files()
fails and we were initializing a new database, delete the
system tablespace files before exiting.

8bb5563... by Julius Goryavsky <email address hidden>

MDEV-27181: Galera SST scripts should use ssl_capath for CA directory

1. Galera SST scripts should use ssl_capath (not ssl_ca) for CA
   directory. The current implementation tries to automatically
   detect the path using the trailing slash in the ssl_ca variable
   value, but this approach is not compatible with the server
   configuration. Now, by analogy with the server, SST scripts
   also use a separate ssl_capath variable. In addition, a similar
   tcapath variable has been added for the old-style configuration
   (in the "sst" section).
2. Openssl utility detection made more reliable.
3. Removed extra spaces in automatically generated command lines -
   to simplify debugging of the SST scripts.
4. In general, the code for detecting the presence or absence of
   auxiliary utilities has been improved - it is made more reliable
   in some configurations (and for shells other than bash).

6b066ec... by Marko Mäkelä

MDEV-27235: Crash on SET GLOBAL innodb_encrypt_tables

fil_crypt_set_encrypt_tables(): If no encryption threads have been
initialized, do nothing.

0745db7... by Sergei Golubchik

don't use buffered_option_error_reporter without perfschema

it's not printed, not cleaned up without perfschema,
so isn't supposed to be written into either

this fixes "Memory not freed" warnings when early command line
options produce warnings in non-perfschema builds

eafa2a1... by Larysa Sherepa

enable partition_open_files_limit test

f974062... by Sergei Krivonos

MDEV-19129: Fixed configure for Xcode, CMake generate

CMake Error in wsrep-lib/CMakeLists.txt:
  The custom command generating

    /Users/name/build/mariadb-server/sql/lex_token.h

  is attached to multiple targets:

    GenServerSource
    sql

  but none of these is a common dependency of the other(s). This is not
  allowed by the Xcode "new build system".