Skip to content

Fix segfault in backup retryer#6395

Merged
deepthi merged 1 commit intovitessio:masterfrom
tinyspeck:am_fix_retryer
Jun 29, 2020
Merged

Fix segfault in backup retryer#6395
deepthi merged 1 commit intovitessio:masterfrom
tinyspeck:am_fix_retryer

Conversation

@ajm188
Copy link
Copy Markdown
Contributor

@ajm188 ajm188 commented Jun 29, 2020

Not every case has OrigErr as non-nil, and getting at the underlying
error this way can cause segfaults. It's much better to use the
Error() function will which will safely include the error strings of
any underlying errors.

@ajm188 ajm188 requested a review from deepthi June 29, 2020 13:15
@ajm188 ajm188 requested a review from sougou as a code owner June 29, 2020 13:15
Not every case has `OrigErr` as non-nil, and getting at the underlying
error this way can cause segfaults. It's much better to use the
`Error()` function will which will safely include the error strings of
any underlying errors.

Signed-off-by: Andrew Mason <amason@slack-corp.com>
Copy link
Copy Markdown
Collaborator

@deepthi deepthi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice unit tests!

@deepthi deepthi merged commit c96a069 into vitessio:master Jun 29, 2020
@deepthi deepthi added this to the v7.0 milestone Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants