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: data race in pbq manager. Closes #348 #349

Merged
merged 1 commit into from
Nov 14, 2022
Merged

Conversation

vigith
Copy link
Member

@vigith vigith commented Nov 14, 2022

Fixes: #348

Signed-off-by: Vigith Maurice vigith@gmail.com

Signed-off-by: Vigith Maurice <vigith@gmail.com>
@vigith vigith marked this pull request as ready for review November 14, 2022 18:12
@vigith vigith requested a review from whynowy as a code owner November 14, 2022 18:12
@ashwinidulams
Copy link
Contributor

the fix looks right to me. we are using lock where ever we are modifying pbqmap. we just need a lock for read as well which i see here.

@ashwinidulams ashwinidulams merged commit f254c28 into main Nov 14, 2022
@ashwinidulams ashwinidulams deleted the fix-datarace branch November 14, 2022 18:13
whynowy pushed a commit that referenced this pull request Nov 18, 2022
Signed-off-by: Vigith Maurice <vigith@gmail.com>
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.

data race in pbqmanager
2 participants