mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-13 17:14:05 -08:00
Merge pull request #180 from prometheus/fixbugz
Fix race in symbol table re-creation
This commit is contained in:
commit
7bc07d80b6
2
head.go
2
head.go
|
@ -665,7 +665,7 @@ func (h *Head) gc() {
|
||||||
// Rebuild symbols and label value indices from what is left in the postings terms.
|
// Rebuild symbols and label value indices from what is left in the postings terms.
|
||||||
h.postings.mtx.RLock()
|
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))
|
values := make(map[string]stringset, len(h.values))
|
||||||
|
|
||||||
for t := range h.postings.m {
|
for t := range h.postings.m {
|
||||||
|
|
Loading…
Reference in a new issue