mirror of https://github.com/prometheus/prometheus
Browse Source
The purpose of GetRef() is to allow Append() to be called without the caller needing to copy the labels. To avoid a race where a series is removed from TSDB between the calls to GetRef() and Append(), we return TSDB's copy of the labels. Signed-off-by: Bryan Boreham <bjboreham@gmail.com>pull/8642/head
Bryan Boreham
4 years ago
committed by
GitHub
3 changed files with 11 additions and 9 deletions
Loading…
Reference in new issue