mirror of
https://github.com/MariaDB/server.git
synced 2025-02-15 09:55:33 +01:00
![Kristian Nielsen](/assets/img/avatar_default.png)
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>
16 lines
393 B
Text
16 lines
393 B
Text
--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
|