Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not use gtid if gtid is disabled (#1781)
Fixed an issue where the input_canal plugin used GTID as the sync method even when gtid_enabled was set to false. This led to syncing from the beginning due to receiving an empty GTID set. Syncing from the beginning is usually undesirable as it consumes significant CPU resources on the server side and deviates from the default plugin behavior. This commit ensures that the plugin respects the gtid_enabled switch and the gtid_mode query result.
- Loading branch information