Skip to content

Commit

Permalink
Fix for mysql source being restarted after new table added
Browse files Browse the repository at this point in the history
  • Loading branch information
rjobanp committed Oct 29, 2024
1 parent cade5df commit 9f4276f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/storage/src/source/mysql/replication/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@ pub(super) async fn handle_query_event(
(Some("commit"), None) => {
is_complete_event = true;
}
// Detect `CREATE TABLE <tbl>` statements which don't affect existing tables but do
// signify a complete event (e.g. for the purposes of advancing the GTID)
(Some("create"), Some("table")) => {
is_complete_event = true;
}
_ => {}
}

Expand Down

0 comments on commit 9f4276f

Please sign in to comment.