MCPcopy
hub / github.com/CodisLabs/codis / dirtySlotsCache

Method dirtySlotsCache

pkg/topom/topom_cache.go:12–18  ·  view source on GitHub ↗
(sid int)

Source from the content-addressed store, hash-verified

10)
11
12func (s *Topom) dirtySlotsCache(sid int) {
13 s.cache.hooks.PushBack(func() {
14 if s.cache.slots != nil {
15 s.cache.slots[sid] = nil
16 }
17 })
18}
19
20func (s *Topom) dirtyGroupCache(gid int) {
21 s.cache.hooks.PushBack(func() {

Callers 11

SlotCreateActionMethod · 0.95
SlotCreateActionSomeMethod · 0.95
SlotCreateActionRangeMethod · 0.95
SlotRemoveActionMethod · 0.95
SlotActionCompleteMethod · 0.95
SlotsAssignGroupMethod · 0.95
SlotsAssignOfflineMethod · 0.95
SlotsRebalanceMethod · 0.95
TestSlotsCacheFunction · 0.80
contextUpdateSlotMappingFunction · 0.80

Calls 1

PushBackMethod · 0.45

Tested by 2

TestSlotsCacheFunction · 0.64
contextUpdateSlotMappingFunction · 0.64