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

Method maxSyncActionIndex

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

Source from the content-addressed store, hash-verified

203}
204
205func (ctx *context) maxSyncActionIndex() (maxIndex int) {
206 for _, g := range ctx.group {
207 for _, x := range g.Servers {
208 if x.Action.State == models.ActionPending {
209 maxIndex = math2.MaxInt(maxIndex, x.Action.Index)
210 }
211 }
212 }
213 return maxIndex
214}
215
216func (ctx *context) minSyncActionIndex() string {
217 var d *models.GroupServer

Callers 1

SyncCreateActionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected