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

Method storeUpdateSentinel

pkg/topom/topom_cache.go:223–230  ·  view source on GitHub ↗
(p *models.Sentinel)

Source from the content-addressed store, hash-verified

221}
222
223func (s *Topom) storeUpdateSentinel(p *models.Sentinel) error {
224 log.Warnf("update sentinel:\n%s", p.Encode())
225 if err := s.store.UpdateSentinel(p); err != nil {
226 log.ErrorErrorf(err, "store: update sentinel failed")
227 return errors.Errorf("store: update sentinel failed")
228 }
229 return nil
230}

Callers 6

GroupAddServerMethod · 0.95
GroupDelServerMethod · 0.95
GroupPromoteServerMethod · 0.95
AddSentinelMethod · 0.95
DelSentinelMethod · 0.95
ResyncSentinelsMethod · 0.95

Calls 5

WarnfMethod · 0.80
UpdateSentinelMethod · 0.80
ErrorErrorfMethod · 0.80
ErrorfMethod · 0.80
EncodeMethod · 0.45

Tested by

no test coverage detected