gh-ost icon indicating copy to clipboard operation
gh-ost copied to clipboard

Add some support for running gh-ost in `MINIMAL` RBR setups

Open ajm188 opened this issue 6 years ago • 0 comments

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/cibuild returns with no formatting errors, build errors or unit test errors.

ajm188 avatar May 09 '20 17:05 ajm188