diff options
| author | zehweh <cw@tf2.net> | 2023-11-07 16:58:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-07 07:58:19 -0800 |
| commit | 2b9dda7d2e96d5eee82e48733f9ce7894a8d13f8 (patch) | |
| tree | 29821e90ac1f26c71d0477a25e2504e4cca5b18b | |
| parent | d693beea875a11172df69789f6eb95ccf4078156 (diff) | |
| download | seaweedfs-2b9dda7d2e96d5eee82e48733f9ce7894a8d13f8.tar.xz seaweedfs-2b9dda7d2e96d5eee82e48733f9ce7894a8d13f8.zip | |
fix isMisplaced() in command_volume_fix_replication.go (#4988)
| -rw-r--r-- | weed/shell/command_volume_fix_replication.go | 6 |
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 } |
