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:
13
mysql-test/suite/rpl/r/rpl_csv.result
Normal file
13
mysql-test/suite/rpl/r/rpl_csv.result
Normal file
@@ -0,0 +1,13 @@
|
||||
include/master-slave.inc
|
||||
[connection master]
|
||||
*** 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;
|
||||
connection slave;
|
||||
SELECT * FROM t ORDER BY a;
|
||||
a
|
||||
2
|
||||
connection master;
|
||||
DROP TABLE t;
|
||||
include/rpl_end.inc
|
Reference in New Issue
Block a user