MakeBuffersForGet returns buffers to use with Ring.Get().
()
| 108 | |
| 109 | // MakeBuffersForGet returns buffers to use with Ring.Get(). |
| 110 | func 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 | |
| 117 | func resetZoneMap(zones map[string]int) map[string]int { |
| 118 | if zones == nil { |
no outgoing calls