MCPcopy Create free account
hub / github.com/deepflowio/deepflow / resetLabelState

Function resetLabelState

server/controller/prometheus/cache/cache_test.go:208–213  ·  view source on GitHub ↗
(l *label, active map[IDLabelKey]int)

Source from the content-addressed store, hash-verified

206}
207
208func resetLabelState(l *label, active map[IDLabelKey]int) {
209 l.mu.Lock()
210 l.pending = make(map[IDLabelKey]int)
211 l.mu.Unlock()
212 l.replaceActive(active)
213}
214
215func resetLabelValueState(lv *labelValue, active map[string]int) {
216 lv.mu.Lock()

Calls 3

LockMethod · 0.45
UnlockMethod · 0.45
replaceActiveMethod · 0.45

Tested by

no test coverage detected