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

Method replaceActive

server/controller/prometheus/cache/label.go:81–83  ·  view source on GitHub ↗
(newActive map[IDLabelKey]int)

Source from the content-addressed store, hash-verified

79}
80
81func (l *label) replaceActive(newActive map[IDLabelKey]int) {
82 l.active.Store(newActive)
83}
84
85// toIDKey converts a string-based LabelKey to an int-based IDLabelKey.
86// Returns false if either name or value is not found in the caches.

Callers 5

refreshMethod · 0.95
resetLabelStateFunction · 0.45
resetLabelValueStateFunction · 0.45
resetLabelNameStateFunction · 0.45
resetLayoutStateFunction · 0.45

Calls 1

StoreMethod · 0.80

Tested by 4

resetLabelStateFunction · 0.36
resetLabelValueStateFunction · 0.36
resetLabelNameStateFunction · 0.36
resetLayoutStateFunction · 0.36