Index: filter/dscache/support.go |
diff --git a/filter/dscache/support.go b/filter/dscache/support.go |
index ea64460886d971efa1272e9e7072d08e3058f60c..4a2480ab7d29162ff37510758d453a2767109e2c 100644 |
--- a/filter/dscache/support.go |
+++ b/filter/dscache/support.go |
@@ -42,7 +42,8 @@ func (s *supportContext) numShards(k *ds.Key) int { |
func (s *supportContext) mkRandKeys(keys []*ds.Key, metas ds.MultiMetaGetter) []string { |
ret := []string(nil) |
for i, key := range keys { |
- if !metas.GetMetaDefault(i, CacheEnableMeta, true).(bool) { |
+ mg := metas.GetSingle(i) |
+ if !ds.GetMetaDefault(mg, CacheEnableMeta, true).(bool) { |
continue |
} |
shards := s.numShards(key) |