Skip to content

Commit 3c8674e

Browse files
committed
Merge 10.4 into 10.5
2 parents 01d78d3 + ef784c4 commit 3c8674e

File tree

3 files changed

+46
-1
lines changed

3 files changed

+46
-1
lines changed

extra/mariabackup/xtrabackup.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2364,7 +2364,8 @@ xb_read_delta_metadata(const char *filepath, xb_delta_info_t *info)
23642364
msg("page_size is required in %s", filepath);
23652365
r = FALSE;
23662366
} else {
2367-
info->page_size = zip_size ? zip_size : page_size;
2367+
info->page_size = page_size;
2368+
info->zip_size = zip_size;
23682369
}
23692370

23702371
if (info->space_id == ULINT_UNDEFINED) {
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#
2+
# MDEV-18589 Assertion ...physical_size(flags) == info.page_size
3+
# failed in xb_delta_open_matching_space
4+
#
5+
CREATE TABLE t (pk INT PRIMARY KEY) ENGINE=InnoDB ROW_FORMAT=COMPRESSED;
6+
ALTER TABLE t PARTITION BY KEY(pk);
7+
# shutdown server
8+
# remove datadir
9+
# xtrabackup move back
10+
# restart
11+
SHOW CREATE TABLE t;
12+
Table Create Table
13+
t CREATE TABLE `t` (
14+
`pk` int(11) NOT NULL,
15+
PRIMARY KEY (`pk`)
16+
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPRESSED
17+
PARTITION BY KEY (`pk`)
18+
DROP TABLE t;
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
--source include/have_innodb.inc
2+
--source include/have_partition.inc
3+
4+
let $basedir=$MYSQLTEST_VARDIR/tmp/backup;
5+
let $incremental_dir=$MYSQLTEST_VARDIR/tmp/backup_inc1;
6+
7+
--echo #
8+
--echo # MDEV-18589 Assertion ...physical_size(flags) == info.page_size
9+
--echo # failed in xb_delta_open_matching_space
10+
--echo #
11+
12+
CREATE TABLE t (pk INT PRIMARY KEY) ENGINE=InnoDB ROW_FORMAT=COMPRESSED;
13+
14+
--exec $XTRABACKUP --backup --target-dir=$basedir --protocol=tcp --port=$MASTER_MYPORT --user=root
15+
16+
ALTER TABLE t PARTITION BY KEY(pk);
17+
18+
--exec $XTRABACKUP --backup --target-dir=$incremental_dir --incremental-basedir=$basedir --protocol=tcp --port=$MASTER_MYPORT --user=root > $incremental_dir.log 2>&1
19+
--exec $XTRABACKUP --prepare --target-dir=$basedir --user=root > $MYSQL_TMP_DIR/backup_prepare_0.log 2>&1
20+
--exec $XTRABACKUP --prepare --target-dir=$basedir --incremental-dir=$incremental_dir --user=root > $MYSQL_TMP_DIR/backup_prepare_1.log
21+
--cat_file $MYSQL_TMP_DIR/backup_prepare_1.log
22+
let $targetdir=$basedir;
23+
-- source include/restart_and_restore.inc
24+
25+
SHOW CREATE TABLE t;
26+
DROP TABLE t;

0 commit comments

Comments
 (0)