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

Method ResetStats

pkg/proxy/proxy_api.go:163–170  ·  view source on GitHub ↗
(params martini.Params)

Source from the content-addressed store, hash-verified

161}
162
163func (s *apiServer) ResetStats(params martini.Params) (int, string) {
164 if err := s.verifyXAuth(params); err != nil {
165 return rpc.ApiResponseError(err)
166 } else {
167 ResetStats()
168 return rpc.ApiResponseJson("OK")
169 }
170}
171
172func (s *apiServer) ForceGC(params martini.Params) (int, string) {
173 if err := s.verifyXAuth(params); err != nil {

Callers 1

handleResetStatsMethod · 0.45

Calls 2

verifyXAuthMethod · 0.95
ResetStatsFunction · 0.85

Tested by

no test coverage detected