maria:bb-11.1-mdev-26137-round-9

Last commit made on 2023-03-21
Get this branch:
git clone -b bb-11.1-mdev-26137-round-9 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-11.1-mdev-26137-round-9
Repository:
lp:maria

Recent commits

f4cbd42... by Yuchen Pei

Addressing review comments

b4f3c9c... by Yuchen Pei

MDEV-26137 Improve import tablespace workflow.

Allow ALTER TABLE ... IMPORT TABLESPACE without creating the table
followed by discarding the tablespace.

That is, assuming we want to import table t1 to t2, instead of

CREATE TABLE t2 LIKE t1;
ALTER TABLE t2 DISCARD TABLESPACE;
FLUSH TABLES t1 FOR EXPORT;
--copy_file $MYSQLD_DATADIR/test/t1.cfg $MYSQLD_DATADIR/test/t2.cfg
--copy_file $MYSQLD_DATADIR/test/t1.ibd $MYSQLD_DATADIR/test/t2.ibd
UNLOCK TABLES;
ALTER TABLE t2 IMPORT TABLESPACE;

We can simply do

FLUSH TABLES t1 FOR EXPORT;
--copy_file $MYSQLD_DATADIR/test/t1.cfg $MYSQLD_DATADIR/test/t2.cfg
--copy_file $MYSQLD_DATADIR/test/t1.frm $MYSQLD_DATADIR/test/t2.frm
--copy_file $MYSQLD_DATADIR/test/t1.ibd $MYSQLD_DATADIR/test/t2.ibd
UNLOCK TABLES;
ALTER TABLE t2 IMPORT TABLESPACE;

We achieve this by creating a "stub" table in the second scenario
while opening the table, where t2 does not exist but needs to import
from t1. The "stub" table is similar to a table that is created but
then instructed to discard its tablespace.

We include tests with various row formats, encryption, with indexes
and auto-increment.

Signed-off-by: Yuchen Pei <email address hidden>

bdcb2ae... by Marko Mäkelä

Merge 11.0 into 11.1

221b5d7... by Marko Mäkelä

Merge 10.11 into 11.0

faeca00... by Marko Mäkelä

Merge 10.10 into 10.11

78d0d74... by Marko Mäkelä

Merge 10.9 into 10.10

eec1d6c... by Marko Mäkelä

Merge 10.8 into 10.9

e4b83f0... by Marko Mäkelä

Merge 10.6 into 10.8

32a53a6... by Marko Mäkelä

MDEV-26827 fixup: Remove a bogus assertion

We can have dirty_blocks=0 when buf_flush_page_cleaner() is being woken up
to write out or evict pages from the buf_pool.LRU list.

7b032b0... by Monty <email address hidden>

Fixed newly introduced bug in scripts/mysql_install_db

In some cases, the errors would not be written to the log.
This was however not critical as in most cases mysql_install_db
should not normally write anything to the log.