gh-ost
gh-ost copied to clipboard
Add some support for running gh-ost in `MINIMAL` RBR setups
Related issue: https://github.com/github/gh-ost/issues/230
Description
Adds some support for running gh-ost in MINIMAL RBR setups
Partially addresses #230.
Changes:
Add a new flag, --switch-to-full-rbr. If this flag is set, and --assume-rbr is not passed, gh-ost will first set binlog format to ROW if it is not already (this is existing behavior), but then also sets the binlog row image to FULL if it is not already (this is the new behavior) before restarting replication.
Mirroring the way gh-ost handles changing binary logging from SBR to RBR, gh-ost will not reset the row image to MINIMAL under any circumstance.
In case this PR introduced Go code changes:
- [x] contributed code is using same conventions as original code
- [x]
script/cibuildreturns with no formatting errors, build errors or unit test errors.