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

Function MakeBuffersForGet

pkg/ring/util.go:110–115  ·  view source on GitHub ↗

MakeBuffersForGet returns buffers to use with Ring.Get().

()

Source from the content-addressed store, hash-verified

108
109// MakeBuffersForGet returns buffers to use with Ring.Get().
110func MakeBuffersForGet() (bufDescs []InstanceDesc, bufHosts []string, bufZones map[string]int) {
111 bufDescs = make([]InstanceDesc, 0, GetBufferSize)
112 bufHosts = make([]string, 0, GetBufferSize)
113 bufZones = make(map[string]int, GetZoneSize)
114 return
115}
116
117func resetZoneMap(zones map[string]int) map[string]int {
118 if zones == nil {

Calls

no outgoing calls