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

fix: use ipfs datastore as root datastore for persistent service #90

Closed
wants to merge 1 commit into from

Conversation

gfanton
Copy link
Member

@gfanton gfanton commented Jun 27, 2023

badger create some deadlock with store message for an unknown reason, use ipfs main datastore as root datastore for now

@gfanton gfanton self-assigned this Jun 27, 2023
repo, err := ipfsutil.LoadRepoFromPath(path)
if err != nil {
return nil, err
}

// use ipfs root datastore
opts.RootDatastore = repo.Datastore()
Copy link
Contributor

Choose a reason for hiding this comment

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

you should probably create a namespaced datastore from the ipfs datastore

Copy link
Member Author

Choose a reason for hiding this comment

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

you totally right, thanks !

@gfanton gfanton force-pushed the fix/root-ds branch 2 times, most recently from 8b3c757 to 5e9bd08 Compare June 27, 2023 21:24
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
@jefft0
Copy link
Contributor

jefft0 commented Aug 4, 2023

The deadlock mentioned in the description isn't related to Badger. We haven't reproduced the bug. Closing this PR without merge.

@jefft0 jefft0 closed this Aug 4, 2023
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.

3 participants