MCPcopy Create free account
hub / github.com/cortexproject/cortex / Load

Method Load

pkg/util/math/max_tracker.go:21–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21func (m *MaxTracker) Load() int64 {
22 c := m.current.Load()
23 o := m.old.Load()
24 return max(c, o)
25}

Callers 15

TestIngesterMetricsFunction · 0.95
TestMaxTrackerFunction · 0.95
FlushOnShutdownMethod · 0.80
processShutdownMethod · 0.80
getErrorMethod · 0.80
getPrimaryClientMethod · 0.80
CASMethod · 0.80
tcpListenMethod · 0.80
getKVMethod · 0.80

Calls 1

maxFunction · 0.85

Tested by 15

TestIngesterMetricsFunction · 0.76
TestMaxTrackerFunction · 0.76
TestFrontendCancelFunction · 0.64
PushMethod · 0.64
QueryMethod · 0.64
QueryStreamMethod · 0.64
MetricsMetadataMethod · 0.64