mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08:00
83c60ad43a
Some users of GetMetricForFingerprint() end up modifying the returned metric labelset. Since the memory storage's implementation of GetMetricForFingerprint() returned a pointer to the metric (and maps are reference types anyways), the external mutation propagated back into the memory storage. The fix is to make a copy of the metric before returning it. |
||
---|---|---|
.. | ||
ast | ||
fixtures | ||
alerting.go | ||
helpers.go | ||
lexer.l | ||
lexer.l.go | ||
load.go | ||
Makefile | ||
manager.go | ||
parser.y | ||
parser.y.go | ||
recording.go | ||
rules.go | ||
rules_test.go | ||
testdata.go |