aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_fix_replication.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/shell/command_volume_fix_replication.go')
-rw-r--r--weed/shell/command_volume_fix_replication.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/shell/command_volume_fix_replication.go b/weed/shell/command_volume_fix_replication.go
index 43db0ff3b..9b6a64e6f 100644
--- a/weed/shell/command_volume_fix_replication.go
+++ b/weed/shell/command_volume_fix_replication.go
@@ -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
}