From d225a1d833b62c0912e59a674f9f423bd89569c7 Mon Sep 17 00:00:00 2001
From: Jakub Sztandera <kubuxu@protonmail.ch>
Date: Tue, 5 Jul 2016 16:59:23 +0200
Subject: [PATCH] block/blockstore: bloomcache PutMany logic was not adding to
 ARC

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
---
 blocks/blockstore/bloom_cache.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/blocks/blockstore/bloom_cache.go b/blocks/blockstore/bloom_cache.go
index d9f93b3e8550..1a4c57ac47ea 100644
--- a/blocks/blockstore/bloom_cache.go
+++ b/blocks/blockstore/bloom_cache.go
@@ -169,6 +169,7 @@ func (b *bloomcache) PutMany(bs []blocks.Block) error {
 	if err == nil {
 		for _, block := range bs {
 			b.bloom.AddTS([]byte(block.Key()))
+			b.arc.Add(block.Key(), true)
 		}
 	}
 	return err