1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-34705: Binlog in Engine: Allocate next binlog tablespace as needed.

Only works for two tablespace files though. For the third, we need to
implement closing the first one, so that the tablespace id can be reused.

Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
This commit is contained in:
Kristian Nielsen
2024-06-19 14:30:04 +02:00
parent 1db620338d
commit d2d62133a8
4 changed files with 44 additions and 15 deletions

View File

@@ -10,3 +10,15 @@ COMMIT;
SELECT * FROM t1 ORDER BY a;
DROP TABLE t1;
SELECT @@GLOBAL.binlog_checksum;
CREATE TABLE t2 (a INT PRIMARY KEY, b VARCHAR(2048)) ENGINE=InnoDB;
SET SESSION binlog_format= ROW;
--let $i= 0
while ($i < 500) {
eval INSERT INTO t2 VALUES ($i, REPEAT("x", 2048));
inc $i;
}
SET SESSION binlog_format= MIXED;
DROP TABLE t2;