Browse Source
BUG#31583 (5.1-telco-6.1 -> 5.1.22. Slave returns Error in unknown event):
BUG#31583 (5.1-telco-6.1 -> 5.1.22. Slave returns Error in unknown event):
In the patch for BUG#21842, the code for handling old rows events were refactored. There were a bug in the refactored code (possibly introduced after the patch for BUG#21842) that caused caused the refactored old events to read a columns bitmap after image even though there is no such bitmap for old events. As a result, the reading got out of sync, and started reading invalid data. This patch removes all trace of the after image column bitmap from the refactored old events and removes functions that are no longer needed because they are empty.pull/73/head
5 changed files with 44 additions and 90 deletions
-
15mysql-test/suite/bugs/r/rpl_bug31583.result
-
21mysql-test/suite/bugs/t/rpl_bug31583.test
-
5sql/log_event.cc
-
76sql/log_event_old.cc
-
17sql/log_event_old.h
@ -0,0 +1,15 @@ |
|||
stop slave; |
|||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; |
|||
reset master; |
|||
reset slave; |
|||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; |
|||
start slave; |
|||
CREATE TABLE t1 ( a INT, b INT DEFAULT -3 ); |
|||
INSERT INTO t1 VALUES (1, DEFAULT); |
|||
UPDATE t1 SET a = 3; |
|||
SELECT * FROM t1 ORDER BY a; |
|||
a b |
|||
3 -3 |
|||
SELECT * FROM t1 ORDER BY a; |
|||
a b |
|||
3 -3 |
|||
@ -0,0 +1,21 @@ |
|||
# |
|||
# BUG#31583: 5.1-telco-6.1 -> 5.1.22. Slave returns Error in unknown event |
|||
|
|||
# This is a problem for any update statement replicating from an old |
|||
# server to a new server. The bug consisted of a new slave trying to |
|||
# read two column bitmaps, but there is only one available in the old |
|||
# format. |
|||
|
|||
# This test case should be executed replicating from an old server to |
|||
# a new server, so make sure you have one handy. |
|||
|
|||
source include/master-slave.inc; |
|||
|
|||
CREATE TABLE t1 ( a INT, b INT DEFAULT -3 ); |
|||
|
|||
INSERT INTO t1 VALUES (1, DEFAULT); |
|||
UPDATE t1 SET a = 3; |
|||
SELECT * FROM t1 ORDER BY a; |
|||
sync_slave_with_master; |
|||
SELECT * FROM t1 ORDER BY a; |
|||
|
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue