mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-31779 Server crash in Rows_log_event::update_sequence upon replaying binary log
The crash at running mysqlbinlog on a SEQUENCE containing binlog file was caused MDEV-29621 fixes that did not check which of the slave or binlog applier executes a block introduced there. The block is meaningful only for the parallel slave applier, so it's safe to fix this bug with identified the actual applier and skipping the block when it's the mysqlbinlog one.
This commit is contained in:
@ -127,4 +127,14 @@ CREATE SEQUENCE s4;
|
||||
DROP SEQUENCE s2,s3,s4;
|
||||
DROP TABLE ti;
|
||||
connection slave;
|
||||
connection master;
|
||||
CREATE SEQUENCE s;
|
||||
SELECT NEXTVAL(s);
|
||||
NEXTVAL(s)
|
||||
1
|
||||
flush binary logs;
|
||||
DROP SEQUENCE s;
|
||||
DROP SEQUENCE s;
|
||||
connection slave;
|
||||
connection master;
|
||||
include/rpl_end.inc
|
||||
|
Reference in New Issue
Block a user