(p index.Postings)
| 204 | } |
| 205 | |
| 206 | func getPostingCardinality(p index.Postings) (int, error) { |
| 207 | totalCount := 0 |
| 208 | for p.Next() { |
| 209 | totalCount++ |
| 210 | } |
| 211 | |
| 212 | if p.Err() != nil { |
| 213 | return 0, p.Err() |
| 214 | } |
| 215 | return totalCount, nil |
| 216 | } |
| 217 | |
| 218 | func (m *labelSetCounter) increaseSeriesLabelSet(u *userTSDB, metric labels.Labels) { |
| 219 | limits := m.limiter.limitsPerLabelSets(u.userID, metric) |