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

Code bug #3063

Closed
haiheipijuan opened this issue Aug 9, 2016 · 2 comments
Closed

Code bug #3063

haiheipijuan opened this issue Aug 9, 2016 · 2 comments

Comments

@haiheipijuan
Copy link

Version/Platform/Processor information (from ipfs version --all):
go-ipfs version: 0.4.3-rc2-3ba9b67
Repo version: 4
System version: amd64/darwin
Golang version: go1.6

Type (bug, feature, meta, test failure, question):bug
Area (api, commands, daemon, fuse, etc):code
Priority (from P0: functioning, to P4: operations on fire):p1

Description:
code is here: https://github.com/ipfs/go-ipfs/blob/master/blocks/blockstore/arc_cache.go#L63, shoud be "if res {", because we don't need to to put the key into the cache does not exist.

@Kubuxu
Copy link
Member

Kubuxu commented Aug 9, 2016

I disagree with your statement, we want to cache both positive and negative Has responses. This means: if Has call was successful, put it into cache, no matter if it is true or false.

The bloom filter cache is currently disabled by default so it will be unable to catch cases in which the Has response is false.

In future we should place active bloom filter cache before ARC cache to reduce number of hits to ARC.

@haiheipijuan
Copy link
Author

OK, thanks.

@Kubuxu Kubuxu closed this as completed Aug 10, 2016
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

No branches or pull requests

2 participants