From 6dcca97755dcf5cc04f56d8f50d37f314788adc7 Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Fri, 20 Oct 2017 09:29:03 +0200 Subject: [PATCH] Fix race in symbol table re-creation --- head.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/head.go b/head.go index 37126363d..0aeaef5a6 100644 --- a/head.go +++ b/head.go @@ -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 {