maria:10.5-MDEV-22023

Last commit made on 2020-03-31
Get this branch:
git clone -b 10.5-MDEV-22023 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
10.5-MDEV-22023
Repository:
lp:maria

Recent commits

2ee94ad... by Rasmus Johansson <email address hidden>

MDEV-22023 fix manpages to use mariadb* executable names

b2bc837... by Marko Mäkelä

Cassandra: Define ha_cassandra::records_in_range()

The definition of the member function ha_cassandra::records_in_range()
was inadvertently removed (renamed to a non-member function) in
commit ff64152bc72d985862ab729a2cf6d6167531b1ed.

Let us define the overridden member function inline, and add C++11
override qualifiers.

37c1469... by Marko Mäkelä

Merge 10.4 into 10.5

aae3f92... by Marko Mäkelä

Cleanup recv_sys: Move things to members

recv_sys.recovery_on: Replaces recv_recovery_on.

recv_sys_t::apply(): Replaces recv_apply_hashed_log_recs().

recv_sys_var_init(): Remove.

recv_sys_t::recover_low(): Attempt to initialize a page based
on buffered redo log records.

a8b04c3... by Marko Mäkelä

MDEV-12353: Remove a trace of pre-MDEV-13564 crash-upgrade

In commit f8a9f906679e1d1ab026c245f7d24c652050d8b3
we removed support for crash-upgrade from older versions,
but forgot to remove a check for recovering TRUNCATE TABLE
if MariaDB 10.2.18 or 10.3.9 or earlier were killed and
we are attempting to upgrade to MariaDB 10.5.2 or later.
Already MariaDB 10.4 would refuse to recover such TRUNCATE
operations.

e2f1f88... by Marko Mäkelä

Merge 10.3 into 10.4

b092d35... by Marko Mäkelä

MDEV-20590 Introduce a file format constraint to ALTER TABLE

If a table is altered using the MDEV-11369/MDEV-15562/MDEV-13134
ALGORITHM=INSTANT, it can force the table to use a non-canonical
format:

* A hidden metadata record at the start of the clustered index
is used to store each column's DEFAULT value. This makes it possible
to add new columns that have default values without rebuilding the table.

* Starting with MDEV-15562 in MariaDB Server 10.4, a BLOB in the
hidden metadata record is used to store column mappings. This makes
it possible to drop or reorder columns without rebuilding the table.
This also makes it possible to add columns to any position or drop
columns from any position in the table without rebuilding the table.

If a column is dropped without rebuilding the table, old records
will contain garbage in that column's former position, and new records
will be written with NULL values, empty strings, or dummy values.

This is generally not a problem. However, there may be cases where
users may want to avoid putting a table into this format.
For example, users may want to ensure that future UPDATE operations
after an ADD COLUMN will be performed in-place, to reduce write
amplification. (Instantly added columns are essentially always
variable-length.) Users might also want to avoid bugs similar to
MDEV-19916, or they may want to be able to export tables to
older versions of the server.

We will introduce the option innodb_instant_alter_column_allowed,
with the following values:

* never (0): Do not allow instant add/drop/reorder,
to maintain format compatibility with MariaDB 10.x and MySQL 5.x.
If the table (or partition) is not in the canonical format, then
any ALTER TABLE (even one that does not involve instant column
operations) will force a table rebuild.

* add_last (1, default in 10.3): Store a hidden metadata record that
allows columns to be appended to the table instantly (MDEV-11369).
In 10.4 or later, if the table (or partition) is not in this format,
then any ALTER TABLE (even one that does not involve column changes)
will force a table rebuild.

Starting with 10.4:

* add_drop_reorder (2, default): Like 'add_last', but allow the
metadata record to store a column map, to support instant
add/drop/reorder of columns (MDEV-15562).

f8ec3ba... by THIRUNARAYANAN BALATHANDAYUTHAPANI

MDEV-21832 FORCE all partition to rebuild if any one of the
  partition does rebuild

- In ha_innobase::commit_inplace_alter_table() assumes that all partition
should do the same kind of alter operations. During DDL, if one partition
requires table rebuild and other partition doesn't need rebuild
then all partition should be forced to rebuild.

67f2782... by Marko Mäkelä

Fix GCC -Wstringop-truncation

1a9b6c4... by Marko Mäkelä

Merge 10.2 into 10.3