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

Add a lock around the block manager start #506

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

cmickeyb
Copy link
Contributor

@cmickeyb cmickeyb commented Nov 1, 2024

No description provided.

@cmickeyb cmickeyb requested a review from g2flyer November 1, 2024 20:36
@cmickeyb cmickeyb self-assigned this Nov 1, 2024
@cmickeyb cmickeyb force-pushed the mic.nov01.block_manager branch from 099c2ac to 2c2b045 Compare November 1, 2024 21:11
@cmickeyb cmickeyb force-pushed the mic.nov01.block_manager branch from 2c2b045 to e148618 Compare November 5, 2024 22:21
Copy link
Contributor

@g2flyer g2flyer left a comment

Choose a reason for hiding this comment

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

lgtm, certainly in presence of multi-threaded consumers of block_store_manager that lock is required to protected the global object (just didn't realize before this PR that we do have multi-threaded code, so never reviewed from a concurrency control perspective)

@cmickeyb cmickeyb merged commit 4f44384 into hyperledger-labs:main Nov 6, 2024
5 checks passed
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