maria:bb-10.2-MDEV-26127

Last commit made on 2022-03-24
Get this branch:
git clone -b bb-10.2-MDEV-26127 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.2-MDEV-26127
Repository:
lp:maria

Recent commits

fe75fbd... by Nayuta Yanagisawa

MDEV-26127 Assertion `err != DB_DUPLICATE_KEY' failed or InnoDB: Failing assertion: id != 0 on ALTER ... REBUILD PARTITION

During rebuild of partition, the partitioning engine calls
alter_close_table(), which does not unlock and close some table
instances of the target table.
Then, the engine fails to rename partitions because there are table
instances that are still locked.

Closing all the table instance of the target table fixes the bug.

6277e7d... by Alexey Botchkov

MDEV-22742 UBSAN: Many overflow issues in strings/decimal.c - runtime error: signed integer overflow: x * y cannot be represented in type 'long long int' (on optimized builds).

Avoid integer overflow, do the check before the calculation.

f54d638... by Sergei Golubchik

MDEV-27980 file-key-management plugin disabled in mysql_install_db breaks automated deployments (and container initialization)

fix a 2015 typo in build scripts.

--without-plugin=plugin_file_key_management translates to
-DPLUGIN_PLUGIN_FILE_KEY_MANAGEMENT=NO

replace it with a line from 10.4 that builds the plugin
dynamically.

4211538... by Sergei Golubchik

MDEV-27980 file-key-management plugin disabled in mysql_install_db breaks automated deployments (and container initialization)

Revert "Silence the file-key-management plugin during mysql_install_db"

This reverts commit e99d3da6381023395c86f679bb76b00b4385dc2d.

74e668e... by Monty <email address hidden>

Fixed warning for maria.maria-recovery2 about crashed table

The bug was a missing va_start in eprint() which caused a wrong table
name to be printed.
Patch backported from 10.3.

22fd31c... by Alexander Barkov

MDEV-28078 Garbage on multiple equal ENUMs with tricky character sets

TYPELIBs for ENUM/SET columns could erroneously undergo redundant
hex-unescaping at the table open time.

Fix:
- Prevent multiple unescaping of the same TYPELIB
- Prevent sharing TYPELIBs between columns with different mbminlen

118826d... by Marko Mäkelä

Fix gcc-12 -O2 -Warray-bounds

75e39f3... by Marko Mäkelä

Fix gcc-12 -O2 -Wmaybe-uninitialized

0f56e21... by Marko Mäkelä

MDEV-28091 PERFORMANCE_SCHEMA unit tests fail due to memory misalignment

Let us make the mocked-up pfs_malloc() return aligned memory, just
like the actual implementation does.

57dbe87... by Daniel Black

MDEV-23915 ER_KILL_DENIED_ERROR not passed a thread id (part 2)

Per Marko's comment in JIRA, sql_kill is passing the thread id
as long long. We change the format of the error messages to match,
and cast the thread id to long long in sql_kill_user.