test for multi dc replication

This commit is contained in:
Chris Lu
2020-09-11 01:21:17 -07:00
parent e60b2117c3
commit 12a8f5294d
2 changed files with 19 additions and 1 deletions

View File

@@ -299,7 +299,7 @@ func isGoodMove(placement *super_block.ReplicaPlacement, existingReplicas []*Vol
return false
}
if len(racks) > placement.DiffRackCount+1 {
if len(racks) > placement.DiffRackCount+placement.DiffDataCenterCount+1 {
return false
}