Closed aarshkshah1992 closed 2 years ago
Is there a reason that this needs to be a member of the DagStore?
@raulk
IndexBackedBlockstore
in a new indexbs
package.dagstore
. Have moved it outside.@raulk @dirkmc
There was a race here where two Get calls for the same shard key create two shard accesors and only one gets added to the lru cache and eventually relased whereas we lose the reference to the other one without ever releasing it (because multiple add calls to the lru cache for the same key only updates the priority of the item).
I've fixed this with striped locking based on shard key to synchornize access to the lru cache.
@raulk Please can you take a look ?
May I ask what's the status of this work?
Hello. We would like to use DAGStore together with a top-level index. We also need a Blockstore over the top-level index to serve sampling requests to our light clients, so we would like to have this merged not to reinvent the wheel:
Kindly ping @raulk, @dirkmc, and @aarshkshah1992. I know you are busy with FVM and Boost things, but this should not take too much time from you. Thanks!
@hannahhoward probably has the most recent context here, and I think we are hoping to finish the work needed to get this finished.
@Wondertan @MichaelMure we are hoping to get it merged this week
For IPFS <-> Filecoin interop.
A blockstore that can serve retrieval for any cid across all shards that the dagstore has.
TODO