X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/932e3d6e9a899cc662ea3934b79057d39cd88fed..49754950aa80cd1163a053de0f37d975c277e012:/services/keep-balance/block_state.go diff --git a/services/keep-balance/block_state.go b/services/keep-balance/block_state.go index 22e89c019a..46e69059c9 100644 --- a/services/keep-balance/block_state.go +++ b/services/keep-balance/block_state.go @@ -23,6 +23,7 @@ type Replica struct { // replicas actually stored (according to the keepstore indexes we // know about). type BlockState struct { + RefCount int Replicas []Replica Desired map[string]int // TODO: Support combinations of classes ("private + durable") @@ -42,6 +43,7 @@ func (bs *BlockState) addReplica(r Replica) { } func (bs *BlockState) increaseDesired(classes []string, n int) { + bs.RefCount++ if len(classes) == 0 { classes = defaultClasses }