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

Method getPrimaryClient

pkg/ring/kv/multi.go:147–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145}
146
147func (m *MultiClient) getPrimaryClient() (int, kvclient) {
148 v := m.primaryID.Load()
149 return int(v), m.clients[v]
150}
151
152// returns true, if primary client has changed
153func (m *MultiClient) setNewPrimaryClient(store string) (bool, error) {

Callers 7

runWithPrimaryClientMethod · 0.95
ListMethod · 0.95
GetMethod · 0.95
DeleteMethod · 0.95
CASMethod · 0.95
LastUpdateTimeMethod · 0.95

Calls 1

LoadMethod · 0.80

Tested by

no test coverage detected