maria:bb-11.0-mdev-26137

Last commit made on 2023-03-16
Get this branch:
git clone -b bb-11.0-mdev-26137 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-11.0-mdev-26137
Repository:
lp:maria

Recent commits

d7f93e0... by Yuchen Pei

wip please ignore

5f8f9de... 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>

799f759... by Sergei Golubchik

bump the maturity

f2dc4d4... by THIRUNARAYANAN BALATHANDAYUTHAPANI

MDEV-30673 InnoDB recovery hangs when buf_LRU_get_free_block
   is being called

- Recovery fails to release log_sys.latch for non-last batch
before preallocates the block in recv_read_in_area().

da114c7... by Sergei Golubchik

fix for --view-protocol

a687434... by Marko Mäkelä

MDEV-22570 fixup: Silence clang -Wunneeded-internal-declaration

2e431ff... by Marko Mäkelä

Merge 10.11 into 11.0

1fd0099... by Marko Mäkelä

Merge 10.10 into 10.11

345356b... by Marko Mäkelä

Merge 10.9 into 10.10

0d55914... by Marko Mäkelä

Merge 10.8 into 10.9