MakeBuffersForGet returns buffers to use with Ring.Get().
()
| 107 | |
| 108 | // MakeBuffersForGet returns buffers to use with Ring.Get(). |
| 109 | func MakeBuffersForGet() (bufDescs []InstanceDesc, bufHosts, bufZones []string) { |
| 110 | bufDescs = make([]InstanceDesc, 0, GetBufferSize) |
| 111 | bufHosts = make([]string, 0, GetBufferSize) |
| 112 | bufZones = make([]string, 0, GetBufferSize) |
| 113 | return |
| 114 | } |
| 115 | |
| 116 | // getZones return the list zones from the provided tokens. The returned list |
| 117 | // is guaranteed to be sorted. |
no outgoing calls