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

Method maxSlotActionIndex

pkg/topom/context.go:54–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54func (ctx *context) maxSlotActionIndex() (maxIndex int) {
55 for _, m := range ctx.slots {
56 if m.Action.State != models.ActionNothing {
57 maxIndex = math2.MaxInt(maxIndex, m.Action.Index)
58 }
59 }
60 return maxIndex
61}
62
63func (ctx *context) isSlotLocked(m *models.SlotMapping) bool {
64 switch m.Action.State {

Callers 4

SlotCreateActionMethod · 0.80
SlotCreateActionSomeMethod · 0.80
SlotCreateActionRangeMethod · 0.80
SlotsRebalanceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected