mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-35233: RBR does not work with CSV tables
Handle null bits for record comparison in row events the same way as in handler::calculate_checksum(), forcing bits that can be undefined to 1. These bits are the trailing unused bits, as well as the first bit for tables not using HA_OPTION_PACK_RECORD. The csv storage engine leaves these bits at 0, while the row-based replication has them set to 1, which otherwise cause can't find record error. Reviewed-by: Monty <monty@mariadb.org> Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
This commit is contained in:
16
mysql-test/suite/rpl/t/rpl_csv.test
Normal file
16
mysql-test/suite/rpl/t/rpl_csv.test
Normal file
@@ -0,0 +1,16 @@
|
||||
--source include/have_csv.inc
|
||||
--source include/have_binlog_format_row.inc
|
||||
--source include/master-slave.inc
|
||||
|
||||
--echo *** MDEV-35233: RBR does not work with CSV tables
|
||||
CREATE TABLE t (a INT NOT NULL) ENGINE=CSV;
|
||||
INSERT INTO t VALUES (1),(2);
|
||||
DELETE FROM t where a=1;
|
||||
|
||||
--sync_slave_with_master
|
||||
SELECT * FROM t ORDER BY a;
|
||||
|
||||
# Cleanup
|
||||
--connection master
|
||||
DROP TABLE t;
|
||||
--source include/rpl_end.inc
|
Reference in New Issue
Block a user