-
Notifications
You must be signed in to change notification settings - Fork 50
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
IPFS Repo Feature - Implement locks
#9
Comments
I'm thinking that it would be nice to have a This will require things like upgrading |
@whyrusleeping just to make sure I get this right, it is supposed for ipfs-repo to support more than one type of store at the same time? Looking at a regular ipfs repo, seems like datastore is using levelDB and the rest is just straight fs. (What I'm trying to understand is if I can have a clean interface for this things so that it doesn't get super complicated to make it work in the browser as well) |
Some clarity on the question about stores: go-ipfs history:
regardless, it is the case that there is "one datastore", it's just split in two underneath the hood:
so:
I can go through and look at what's left in leveldb, and see about moving it off. i think it may just be dht stuff at this point. (which should be objects) |
And your diagram LGTM! (nice colors!) -- it does not mean changes on fs-repo spec or go-ipfs, right? only on how it's accessed in js-ipfs? |
Nice! Thank you for bringing this clarifications into the thread, I didn't know we were moving away from two data stores. The diagram doesn't propose any change to go-ipfs, it is just a way to deal with the current multi datastore current and enable for these to be replaced by IndexedDB so that it works in the browser. I've been using a dev0.4.0 repo to create my tests and there is indeed levelDB stuff, I can avoid trying to parse it for now, but is it official that 0.4.0 won't have any more levelDB goodness? @jbenet @whyrusleeping Also, I'm curious to learn why we want to remove levelDB entirely over flatfs. |
-> locks + version with locks -> https://github.com/ipfs/js-ipfs-repo/pulls |
I like the direction. 👍 @diasdavid |
dev0.4.0 wont be out of leveldb yet. if we push for it we wont ship it before xmas, and we should. that can come later. repo migrations have worked very well and not been very problematic so far. (caveat: we need to do some user research on this, with people building apps which compose go-ipfs) |
I've updated the README with more documentation, architecture. locks work, it has tests and everything, closing this issue :) |
Full information: https://github.com/ipfs/specs/blob/fix-repo/repo/README.md#locks
Complete Repo Spec - https://github.com/ipfs/specs/blob/fix-repo/repo/README.md
The text was updated successfully, but these errors were encountered: