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

Move ctx and cancel func setup into the Replicator.Start function #6115

Merged
merged 1 commit into from
Jul 12, 2019

Conversation

mkeeler
Copy link
Member

@mkeeler mkeeler commented Jul 11, 2019

Fixes #6104

Previously a sequence of events like:

Start
Stop
Start
Stop

would segfault on the second stop because the original ctx and cancel func were only initialized during the constructor and not during Start.

Previously a sequence of events like:

Start
Stop
Start
Stop

would segfault on the second stop because the original ctx and cancel func were only initialized during the constructor and not during Start.
@mkeeler mkeeler added this to the 1.5.3 milestone Jul 11, 2019
@mkeeler mkeeler requested a review from a team July 11, 2019 16:55
Copy link
Member

@rboyer rboyer left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@banks banks left a comment

Choose a reason for hiding this comment

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

LGTM!

@mkeeler mkeeler merged commit de23af0 into master Jul 12, 2019
@mkeeler mkeeler deleted the bugfix/6104 branch July 12, 2019 14:10
ShimmerGlass pushed a commit to criteo-forks/consul that referenced this pull request Sep 4, 2019
)

Previously a sequence of events like:

Start
Stop
Start
Stop

would segfault on the second stop because the original ctx and cancel func were only initialized during the constructor and not during Start.
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.

Segfail when consul transition from one leader to another
3 participants