mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix isMisplaced() in command_volume_fix_replication.go (#4988)
This commit is contained in:
parent
d693beea87
commit
2b9dda7d2e
|
@ -572,12 +572,12 @@ func isMisplaced(replicas []*VolumeReplica, replicaPlacement *super_block.Replic
|
|||
|
||||
for i := 0; i < len(replicas); i++ {
|
||||
others := otherThan(replicas, i)
|
||||
if satisfyReplicaPlacement(replicaPlacement, others, *replicas[i].location) {
|
||||
return false
|
||||
if !satisfyReplicaPlacement(replicaPlacement, others, *replicas[i].location) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return true
|
||||
return false
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue