mariadb/mysql-test/suite/rpl/r/rpl_row_minimal_mdev31678.result
Kristian Nielsen fc8742e4ad MDEV-31678: UPDATE_ROWS_EVENT not setting updating columns in read_set
When binlog_row_image=MINIMAL, UPDATE_ROWS_EVENT may change columns
that are not in the before image. Such columns had their bit set in
table->write_set, but was missing their bit in table->read_set.

As part of this patch, bitmap_union() is extended to handle bitmaps of
different sizes, similar to bitmap_intersect().

Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
2025-10-07 09:40:36 +02:00

17 lines
517 B
Text

include/master-slave.inc
[connection master]
connection slave;
SET @old_format= @@GLOBAL.binlog_row_image;
SET GLOBAL binlog_row_image=MINIMAL;
include/stop_slave.inc
include/start_slave.inc
SET GLOBAL binlog_row_image= @old_format;
connection default;
SET SESSION binlog_row_image=MINIMAL;
CREATE TABLE t (id INT AUTO_INCREMENT, col_int BIGINT NOT NULL, UNIQUE (col_int), KEY(id)) ENGINE=InnoDB;
INSERT INTO t VALUES (1,1);
UPDATE t SET id = 2;
connection slave;
connection master;
DROP TABLE t;
include/rpl_end.inc