mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
d39d5dd2bc
The general reason why innodb redo log file is limited by 512G is that log_block_convert_lsn_to_no() returns value limited by 1G. But there is no need to have unique log block numbers in log group. The fix removes 512G limit and limits log group size by (uint32_t maximum value) * (minimum page size), which, in turns, can be removed if fil_io() is no longer used for innodb redo log io.
30 lines
1,011 B
Text
30 lines
1,011 B
Text
# Kill the server
|
|
CREATE TABLE t(i INT) ENGINE InnoDB;
|
|
INSERT INTO t VALUES
|
|
(0), (1), (2), (3), (4), (5), (6), (7), (8), (9),
|
|
(0), (1), (2), (3), (4), (5), (6), (7), (8), (9),
|
|
(0), (1), (2), (3), (4), (5), (6), (7), (8), (9),
|
|
(0), (1), (2), (3), (4), (5), (6), (7), (8), (9),
|
|
(0), (1), (2), (3), (4), (5), (6), (7), (8), (9),
|
|
(0), (1), (2), (3), (4), (5), (6), (7), (8), (9),
|
|
(0), (1), (2), (3), (4), (5), (6), (7), (8), (9),
|
|
(0), (1), (2), (3), (4), (5), (6), (7), (8), (9),
|
|
(0), (1), (2), (3), (4), (5), (6), (7), (8), (9),
|
|
(0), (1), (2), (3), (4), (5), (6), (7), (8), (9);
|
|
# xtrabackup backup, execute the following query after test.t is copied:
|
|
# BEGIN NOT ATOMIC INSERT INTO test.t SELECT * FROM test.t; UPDATE test.t SET i = 10 WHERE i = 0; DELETE FROM test.t WHERE i = 1; END
|
|
SELECT count(*) FROM t WHERE i = 0;
|
|
count(*)
|
|
0
|
|
# xtrabackup prepare
|
|
# shutdown server
|
|
# remove datadir
|
|
# xtrabackup move back
|
|
# restart server
|
|
SELECT count(*) FROM t WHERE i = 0;
|
|
count(*)
|
|
0
|
|
Ok
|
|
Ok
|
|
DROP TABLE t;
|
|
# Kill the server
|