Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix integer divide by zero panic in migrator #1140

Merged
merged 3 commits into from
Jul 6, 2022

Conversation

timvaillancourt
Copy link
Collaborator

@timvaillancourt timvaillancourt commented Jun 23, 2022

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 linked an issue Jun 23, 2022 that may be closed by this pull request
@dm-2 dm-2 merged commit 3901a86 into github:master Jul 6, 2022
@timvaillancourt timvaillancourt deleted the fix-issue-1117 branch July 6, 2022 22:40
@dm-2 dm-2 mentioned this pull request Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

printStatus causes a divide by zero error
3 participants