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

Method isGroupInUse

pkg/topom/context.go:258–265  ·  view source on GitHub ↗
(gid int)

Source from the content-addressed store, hash-verified

256}
257
258func (ctx *context) isGroupInUse(gid int) bool {
259 for _, m := range ctx.slots {
260 if m.GroupId == gid || m.Action.TargetId == gid {
261 return true
262 }
263 }
264 return false
265}
266
267func (ctx *context) isGroupLocked(gid int) bool {
268 if g := ctx.group[gid]; g != nil {

Callers 3

GroupDelServerMethod · 0.80
EnableReplicaGroupsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected