Closed dirkmc closed 1 year ago
Fixes root cause of https://github.com/filecoin-project/boost/issues/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
Fixes root cause of https://github.com/filecoin-project/boost/issues/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