gh-ost
gh-ost copied to clipboard
Add real time binlog format checking And chunk range condition generate algorithm optimization
A Pull Request should be associated with an Issue.
Related issue:
https://github.com/github/gh-ost/issues/854 https://github.com/github/gh-ost/issues/855
Description
This PR has two improvements
- Add binlog format checking logic , issue https://github.com/github/gh-ost/issues/854
- Optimize the chunk range condition generation algorithm , https://github.com/github/gh-ost/issues/855
In case this PR introduced Go code changes:
- [go/binlog/gomysql_reader.go] where the binlog format checking logic implementation
- [go/logic/streamer.go] cache the format error , exit gh-ost
- [go/sql/builder.go] change function BuildRangeComparison 's logic
- [go/sql/builder_test.go] unit test case