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

Method storeCreateGroup

pkg/topom/topom_cache.go:169–176  ·  view source on GitHub ↗
(g *models.Group)

Source from the content-addressed store, hash-verified

167}
168
169func (s *Topom) storeCreateGroup(g *models.Group) error {
170 log.Warnf("create group-[%d]:\n%s", g.Id, g.Encode())
171 if err := s.store.UpdateGroup(g); err != nil {
172 log.ErrorErrorf(err, "store: create group-[%d] failed", g.Id)
173 return errors.Errorf("store: create group-[%d] failed", g.Id)
174 }
175 return nil
176}
177
178func (s *Topom) storeUpdateGroup(g *models.Group) error {
179 log.Warnf("update group-[%d]:\n%s", g.Id, g.Encode())

Callers 3

CreateGroupMethod · 0.95
TestGroupCacheFunction · 0.80
contextCreateGroupFunction · 0.80

Calls 5

WarnfMethod · 0.80
UpdateGroupMethod · 0.80
ErrorErrorfMethod · 0.80
ErrorfMethod · 0.80
EncodeMethod · 0.45

Tested by 2

TestGroupCacheFunction · 0.64
contextCreateGroupFunction · 0.64