MCPcopy Index your code
hub / github.com/CodisLabs/codis / handleResetStats

Method handleResetStats

cmd/admin/proxy.go:166–174  ·  view source on GitHub ↗
(d map[string]interface{})

Source from the content-addressed store, hash-verified

164}
165
166func (t *cmdProxy) handleResetStats(d map[string]interface{}) {
167 c := t.newProxyClient(true)
168
169 log.Debugf("call rpc resetstats to proxy %s", t.addr)
170 if err := c.ResetStats(); err != nil {
171 log.PanicErrorf(err, "call rpc resetstats to proxy %s failed", t.addr)
172 }
173 log.Debugf("call rpc resetstats OK")
174}
175
176func (t *cmdProxy) handleForceGC(d map[string]interface{}) {
177 c := t.newProxyClient(true)

Callers 1

MainMethod · 0.95

Calls 4

newProxyClientMethod · 0.95
DebugfMethod · 0.80
PanicErrorfMethod · 0.80
ResetStatsMethod · 0.45

Tested by

no test coverage detected