Fix race in symbol table re-creation

This commit is contained in:
Fabian Reinartz 2017-10-20 09:29:03 +02:00
parent ebdc0f4a61
commit 6dcca97755
1 changed files with 1 additions and 1 deletions

View File

@ -665,7 +665,7 @@ func (h *Head) gc() {
// Rebuild symbols and label value indices from what is left in the postings terms.
h.postings.mtx.RLock()
symbols := make(map[string]struct{}, len(h.symbols))
symbols := make(map[string]struct{})
values := make(map[string]stringset, len(h.values))
for t := range h.postings.m {