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

Method ResyncGroup

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

Source from the content-addressed store, hash-verified

328}
329
330func (s *apiServer) ResyncGroup(params martini.Params) (int, string) {
331 if err := s.verifyXAuth(params); err != nil {
332 return rpc.ApiResponseError(err)
333 }
334 gid, err := s.parseInteger(params, "gid")
335 if err != nil {
336 return rpc.ApiResponseError(err)
337 }
338 if err := s.topom.ResyncGroup(gid); err != nil {
339 return rpc.ApiResponseError(err)
340 } else {
341 return rpc.ApiResponseJson("OK")
342 }
343}
344
345func (s *apiServer) ResyncGroupAll(params martini.Params) (int, string) {
346 if err := s.verifyXAuth(params); err != nil {

Callers

nothing calls this directly

Calls 2

verifyXAuthMethod · 0.95
parseIntegerMethod · 0.95

Tested by

no test coverage detected