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

Method ResyncSentinels

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

Source from the content-addressed store, hash-verified

494}
495
496func (s *apiServer) ResyncSentinels(params martini.Params) (int, string) {
497 if err := s.verifyXAuth(params); err != nil {
498 return rpc.ApiResponseError(err)
499 }
500 if err := s.topom.ResyncSentinels(); err != nil {
501 return rpc.ApiResponseError(err)
502 } else {
503 return rpc.ApiResponseJson("OK")
504 }
505}
506
507func (s *apiServer) InfoServer(params martini.Params) (int, string) {
508 addr, err := s.parseAddr(params)

Callers 1

handleSentinelCommandMethod · 0.45

Calls 1

verifyXAuthMethod · 0.95

Tested by

no test coverage detected