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

Pending block queue lock fixes #8002

Merged
merged 11 commits into from
Dec 2, 2020
Merged

Pending block queue lock fixes #8002

merged 11 commits into from
Dec 2, 2020

Conversation

shayzluf
Copy link
Contributor

@shayzluf shayzluf commented Nov 30, 2020

Bug fix

What does this PR do? Why is it needed?
While going through pending block queue locks and unlocks i found some instances where locks are not being released on error. this pr fixes those issues

@shayzluf shayzluf requested a review from a team as a code owner November 30, 2020 15:42
@shayzluf shayzluf self-assigned this Nov 30, 2020
@shayzluf shayzluf added the Ready For Review A pull request ready for code review label Nov 30, 2020
@rauljordan rauljordan changed the base branch from master to develop November 30, 2020 21:31
terencechain
terencechain previously approved these changes Nov 30, 2020
beacon-chain/sync/pending_blocks_queue.go Outdated Show resolved Hide resolved
@terencechain terencechain dismissed their stale review November 30, 2020 23:25

Please fix defer

Copy link
Member

@nisdas nisdas left a comment

Choose a reason for hiding this comment

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

Nice catches, lgtm

@shayzluf shayzluf merged commit f9c696e into develop Dec 2, 2020
@delete-merged-branch delete-merged-branch bot deleted the lock_fixes branch December 2, 2020 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants