Index: impl/memory/datastore_index.go |
diff --git a/impl/memory/datastore_index.go b/impl/memory/datastore_index.go |
index 7f3a839e9c2509ae77e11c017b2ba113208b4625..f2b5010da0f9c98f31628043c54523f8ddf7bdde 100644 |
--- a/impl/memory/datastore_index.go |
+++ b/impl/memory/datastore_index.go |
@@ -23,7 +23,8 @@ func (s qIndexSlice) Less(i, j int) bool { return s[i].Less(s[j]) } |
func defaultIndexes(kind string, pmap ds.PropertyMap) []*ds.IndexDefinition { |
ret := make(qIndexSlice, 0, 2*len(pmap)+1) |
ret = append(ret, &ds.IndexDefinition{Kind: kind}) |
- for name, pvals := range pmap { |
+ for name := range pmap { |
+ pvals := pmap.Slice(name) |
needsIndex := false |
for _, v := range pvals { |
if v.IndexSetting() == ds.ShouldIndex { |