8000 fix index backed blockstore panic by simplifying locking by dirkmc · Pull Request #147 · filecoin-project/dagstore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix index backed blockstore panic by simplifying locking #147

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

Merged
merged 1 commit into from
Jan 27, 2023

Conversation

dirkmc
Copy link
Contributor
@dirkmc dirkmc commented Jan 27, 2023

Fixes root cause of filecoin-project/boost#1134

In this PR I've replaced the complex locking mechanism in IndexBackedBlockstore with a striped lock, so as to eliminate the possibility of a nil blockstore.

Note that it's easiest to view changes with whitespace diff turned off:
https://github.com/filecoin-project/dagstore/pull/147/files?diff=unified&w=1

@dirkmc dirkmc requested a review from nonsense January 27, 2023 11:15
@dirkmc dirkmc merged commit ac9cc42 into master Jan 27, 2023
@dirkmc dirkmc deleted the fix/idx-backed-bstore branch January 27, 2023 12:42
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
0