Merge pull request #4512 from filecoin-project/feat/disable-bloom
Disable blockstore bloom filter
This commit is contained in:
commit
8cad245f80
@ -50,9 +50,16 @@ type GCLocker = blockstore.GCLocker
|
||||
|
||||
var NewGCLocker = blockstore.NewGCLocker
|
||||
var NewGCBlockstore = blockstore.NewGCBlockstore
|
||||
var DefaultCacheOpts = blockstore.DefaultCacheOpts
|
||||
var ErrNotFound = blockstore.ErrNotFound
|
||||
|
||||
func DefaultCacheOpts() CacheOpts {
|
||||
return CacheOpts{
|
||||
HasBloomFilterSize: 0,
|
||||
HasBloomFilterHashes: 0,
|
||||
HasARCCacheSize: 512 << 10,
|
||||
}
|
||||
}
|
||||
|
||||
func CachedBlockstore(ctx context.Context, bs Blockstore, opts CacheOpts) (Blockstore, error) {
|
||||
bs, err := blockstore.CachedBlockstore(ctx, bs, opts)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user