Skip to content

Conversation

@ajm188
Copy link
Contributor

@ajm188 ajm188 commented May 9, 2020

Related issue: #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:

  • contributed code is using same conventions as original code
  • script/cibuild returns with no formatting errors, build errors or unit test errors.

Andrew Mason added 2 commits May 9, 2020 12:53
Partially addresses github#230.

Add a new flag, `--switch-to-rbr-full`. 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.
@ajm188 ajm188 changed the title Rbr minimal Add some support for running gh-ost in MINIMAL RBR setups May 9, 2020
@timvaillancourt timvaillancourt added this to the v1.1.1 milestone Aug 29, 2020
@timvaillancourt timvaillancourt modified the milestones: v1.1.1, v1.2.0, v1.3.0 May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants