go-mysql-org / go-mysql

a powerful mysql toolset with Go
MIT License
4.58k stars 976 forks source link

Refactor StartBackup to Support Custom Backup Handlers #849

Closed doraemonkeys closed 8 months ago

doraemonkeys commented 8 months ago

This pull request introduces a significant refactor to the StartBackup method within the BinlogSyncer type. The primary goal of this change is to enhance flexibility and extensibility by allowing custom handlers for the backup process, rather than directly interacting with the file system within the method.

doraemonkeys commented 8 months ago

@lance6716 Your opinions are good and I have changed the code