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

Method dirtyGroupCache

pkg/topom/topom_cache.go:20–26  ·  view source on GitHub ↗
(gid int)

Source from the content-addressed store, hash-verified

18}
19
20func (s *Topom) dirtyGroupCache(gid int) {
21 s.cache.hooks.PushBack(func() {
22 if s.cache.group != nil {
23 s.cache.group[gid] = nil
24 }
25 })
26}
27
28func (s *Topom) dirtyProxyCache(token string) {
29 s.cache.hooks.PushBack(func() {

Callers 15

CreateGroupMethod · 0.95
RemoveGroupMethod · 0.95
ResyncGroupMethod · 0.95
ResyncGroupAllMethod · 0.95
GroupAddServerMethod · 0.95
GroupDelServerMethod · 0.95
GroupPromoteServerMethod · 0.95
trySwitchGroupMasterMethod · 0.95
EnableReplicaGroupsMethod · 0.95
SyncCreateActionMethod · 0.95
SyncRemoveActionMethod · 0.95

Calls 1

PushBackMethod · 0.45

Tested by 4

TestGroupCacheFunction · 0.64
contextCreateGroupFunction · 0.64
contextRemoveGroupFunction · 0.64
contextUpdateGroupFunction · 0.64