MCPcopy Index your code
hub / github.com/uber/aresdb / ShowShardSet

Method ShowShardSet

api/debug_handler.go:97–101  ·  view source on GitHub ↗

ShowShardSet shows the shard set owned by the server

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

95
96// ShowShardSet shows the shard set owned by the server
97func (handler *DebugHandler) ShowShardSet(w http.ResponseWriter, r *http.Request) {
98 shards := handler.shardOwner.GetOwnedShards()
99 sort.Ints(shards)
100 common.Respond(w, shards)
101}
102
103// Health returns whether the health check is on or off
104func (handler *DebugHandler) Health(w http.ResponseWriter, r *http.Request) {

Callers

nothing calls this directly

Calls 2

GetOwnedShardsMethod · 0.65
RespondMethod · 0.65

Tested by

no test coverage detected