maria:bb-10.3-MDEV-21027

Last commit made on 2022-06-15
Get this branch:
git clone -b bb-10.3-MDEV-21027 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.3-MDEV-21027
Repository:
lp:maria

Recent commits

a872145... by Shunpoco <email address hidden>

MDEV-21027: Assertion `part_share->auto_inc_initialized || !can_use_for_auto_inc_init()' failed in ha_partition::set_auto_increment_if_higher

ha_partition::set_auto_increment_if_higher expects
part_share->auto_inc_initialized is true or can_use_for_auto_inc_init()
is false (but as the comment of this method saids, it returns false
only if we use Spider engine with DROP TABLE or ALTER TABLE query).
However, part_share->auto_inc_initialized becomes true only after all
partitions are opened (since 6dce6aecebe6ef78a14cb5c5c5daa8a355551e40).

Therefore, I added a conditional expression in order to read all
partitions when we REPLACE a table that has an AUTO_INCREMENT column.

e077ce2... 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.

b59bc62... by Mathew Heard <email address hidden>

MDEV-27766: connect engine; INSERT ignore option, was ignored

Test prior to this change:

CURRENT_TEST: connect.mysql
mysqltest: At line 485: query 'INSERT IGNORE INTO t3 VALUES (5),(10),(30)' failed: ER_GET_ERRMSG (1296): Got error 122 '(1062) Duplicate entry '10' for key 'PRIMARY' [INSERT INTO `t1` (`a`) VALUES (10)]' from CONNECT

So the ignore table option wasn't getting passed to the remove server.
Closes #2008

ace2e03... by Tuukka Pasanen <email address hidden>

MDEV-28666: Add correct 'Breaks' to make sure upgrade from 10.2 succeeds

File '/usr/bin/mariadb_config' has been moved from Debian package
libmariadbd-dev to libmariadb-dev since MariaDB version 10.2
this leads to situation where upgrade will no succeed but fail
with this kind of error message

 * trying to overwrite '/usr/bin/mariadb_config', which is also in package libmariadbd-dev 1:10.2.44+maria~bionic

Add libmariadbd-dev to libmariadb-dev Debian control files
'Breaks' solve situation and upgrading won't error anymore

9829313... by Marko Mäkelä

MDEV-28779: ALTER TABLE IMPORT TABLESPACE corrupts an encrypted table

PageConverter::update_header(): Remove an unnecessary write.
The field that was originally called FIL_PAGE_FILE_FLUSH_LSN only
made sense for the first page of the system tablespace
(initially, for the first page of each file of the system tablespace).
It never had any meaning for .ibd files, and it lost its original
meaning in MariaDB Server 10.8.1 when
commit b07920b634f455c39e3650c6163bec2a8ce0ffe0 (MDEV-27199)
removed the ability to start without ib_logfile0.

If the most significant 32 bits of the LSN are nonzero, this
unnecessary write would write the wrong encryption key identifier
to the page. The first page of any file is never encrypted,
so normally those bytes should be 0 for any .ibd file.

2cd1edf... by Daniel Lewart <email address hidden>

MDEV-25577 mariadb-tzinfo-to-sql generates superfluous warnings

The zoneinfo directory is littered with non-timezone information files.

These frequently contain extensions, not present in real timezone files.

Alo leapseconds is frequently there and is not a timezone file.

9c207c8... by GuiXiaoDi <email address hidden>

mysql.server.sh fix for non-Red Hat platforms

The else condition is meant to be here to define the functions
if the Red Hat include file isn't there.

Fixes: commit 467011bcac3b3f42ae6f21dde8d88e78708b21d1 / MDEV-26614

RedHat -> Red Hat by Daniel Black

44ab6cb... by Marko Mäkelä

Cleanup: Remove unused error code DB_FORCED_ABORT

MariaDB never supported this form of preemption via high-priority
transactions. This error code shold not have been added in the
first place, in commit 2e814d4702d71a04388386a9f591d14a35980bfe.

960f034... by chansuke <email address hidden>

MDEV-25273: fix typo (s/strucures/structures/)

37ea077... by Sergei Golubchik

main.help: flush help tables after modifying them

otherwise following tests that crash the server will see them
corrupted