Skip to content

MDEV-38243 Write binlog row events for changes done by cascading FK o…#4911

Open
sjaakola wants to merge 1 commit into11.4from
11.4-MDEV-38243
Open

MDEV-38243 Write binlog row events for changes done by cascading FK o…#4911
sjaakola wants to merge 1 commit into11.4from
11.4-MDEV-38243

Conversation

@sjaakola
Copy link
Copy Markdown
Contributor

@sjaakola sjaakola commented Apr 7, 2026

…perations

This commit implements a feature which changes the handling of cascading foreign key operations to write the changes of cascading operations into binlog. The applying of such transaction, in the slave node, will apply just the binlog events, and does not execute the actual foreign key cascade operation. This will simplify the slave side replication applying and make it more predictable in terms of potential interference with other parallel applying happening in the node.

This feature can be turned ON/OFF by new variable: rpl_use_binlog_events_for_fk_cascade, with default value OFF

The actual implementation is largely by windsurf.

@sjaakola sjaakola force-pushed the 11.4-MDEV-38243 branch 6 times, most recently from ce69b6c to 9f6daeb Compare April 8, 2026 13:47
…perations

This commit implements a feature which changes the handling of cascading foreign
key operations to write the changes of cascading operations into binlog.
The applying of such transaction, in the slave node, will apply just the binlog
events, and does not execute the actual foreign key cascade operation.
This will simplify the slave side replication applying and make it more predictable
in terms of potential interference with other parallel applying happning
in the node.

This feature can be turned ON/OFF by new variable:
rpl_use_binlog_events_for_fk_cascade, with default value OFF

The actual implementation is largely by windsurf.

The commit has also  two mtr tests for testing rpl_use_binlog_events_for_fk_cascade
feature:  rpl.rpl_fk_cascade_binlog_row and rpl.rpl_fk_set_null_binlog_row
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants