Re-add missing bucket bloom filters (#9861)

This commit is contained in:
Klaus Post
2020-06-17 08:54:41 -07:00
committed by GitHub
parent 4ac31ea82b
commit 1813ff9dfa
3 changed files with 18 additions and 8 deletions

View File

@@ -120,8 +120,8 @@ func (b bloomFilter) containsDir(in string) bool {
}
// bytes returns the bloom filter serialized as a byte slice.
func (b bloomFilter) bytes() []byte {
if b.BloomFilter == nil {
func (b *bloomFilter) bytes() []byte {
if b == nil || b.BloomFilter == nil {
return nil
}
var buf bytes.Buffer