X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3e1c43866e5b523c3f1d273c25942ad56dc66d3f..89be4b30feccc3680ca77339711b29367754dc05:/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 }