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

Method Reload

pkg/topom/topom_api.go:197–206  ·  view source on GitHub ↗
(params martini.Params)

Source from the content-addressed store, hash-verified

195}
196
197func (s *apiServer) Reload(params martini.Params) (int, string) {
198 if err := s.verifyXAuth(params); err != nil {
199 return rpc.ApiResponseError(err)
200 }
201 if err := s.topom.Reload(); err != nil {
202 return rpc.ApiResponseError(err)
203 } else {
204 return rpc.ApiResponseJson("OK")
205 }
206}
207
208func (s *apiServer) parseAddr(params martini.Params) (string, error) {
209 addr := params["addr"]

Callers

nothing calls this directly

Calls 2

verifyXAuthMethod · 0.95
ReloadMethod · 0.65

Tested by

no test coverage detected