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

MDEV-34705: Binlog in Engine: Fix re-using ids for binlog tablespaces

Before creating the next binlog tablespace N+2, flush out and close the old
binlog tablespace N, so that the new tablespace can re-use the tablespace
id without conflict.

Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
This commit is contained in:
Kristian Nielsen
2024-06-21 13:15:10 +02:00
parent d2d62133a8
commit 60436e40bd
2 changed files with 71 additions and 4 deletions

View File

@@ -14,11 +14,15 @@ SELECT @@GLOBAL.binlog_checksum;
CREATE TABLE t2 (a INT PRIMARY KEY, b VARCHAR(2048)) ENGINE=InnoDB;
SET SESSION binlog_format= ROW;
--let num_trx= 1500
--echo *** Do $num_trx transactions ...
--disable_query_log
--let $i= 0
while ($i < 500) {
while ($i < 1500) {
eval INSERT INTO t2 VALUES ($i, REPEAT("x", 2048));
inc $i;
}
--enable_query_log
SET SESSION binlog_format= MIXED;
DROP TABLE t2;