MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / ch_ring_get_server

Function ch_ring_get_server

example/cacheCluster/consistentHash.c:135–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133// }
134
135int ch_ring_get_server(const char *const key, const ring_t *const ring) {
136 return (ring->vnodes + ch_ring_get_vnode_idx(key, ring))->server_id;
137}
138
139int ch_ring_get_server_from_uint64(uint64_t obj_id,
140 const ring_t *const ring) {

Callers

nothing calls this directly

Calls 1

ch_ring_get_vnode_idxFunction · 0.85

Tested by

no test coverage detected