Fix `integer divide by zero` panic in migrator by timvaillancourt · Pull Request #1140 · github/gh-ost

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@timvaillancourt

Copy link Copy Markdown

Collaborator

@timvaillancourt timvaillancourt commented

Jun 23, 2022

edited

Loading

Related issue: #1117

Description

This PR resolves an integer divide by zero panic when migrationContext.HooksStatusIntervalSec is zero. After this PR, no status will be printed when the interval is set to zero

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.

@timvaillancourt timvaillancourt requested review from a user and rashiq

June 23, 2022 10:55

@timvaillancourt timvaillancourt added this to the v1.1.5 milestone

Jun 23, 2022

@timvaillancourt timvaillancourt linked an issue

Jun 23, 2022

that may be closed by this pull request

@ghost ghost merged commit 3901a86 into github:master

Jul 6, 2022

@timvaillancourt timvaillancourt deleted the fix-issue-1117 branch

July 6, 2022 22:40

@ghost ghost mentioned this pull request

Jul 7, 2022

This pull request was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@rashiq rashiq rashiq approved these changes

+1 more reviewer
Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

Projects

None yet

Milestone

v1.1.5

Development

Successfully merging this pull request may close these issues.

printStatus causes a divide by zero error

2 participants

@timvaillancourt @rashiq