Skip to content

printStatus causes a divide by zero error #1117

@ethankhall

Description

@ethankhall

We're using gh-ost as a library, and testing 8f361f6
I noticed that our test suite fails with

Unhandled error
panic: runtime error: integer divide by zero
Location
github.com/github/gh-ost/go/logic/migrator.go:1019 - (*Migrator).printStatus

It looks like when fbb53f4
was introduced if HooksStatusIntervalSec is set to 0, this panic will happen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions