Konstantin Lebedev
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
weed/shell/command_volume_fix_replication.go
|
|
@ -102,7 +102,7 @@ func (c *commandVolumeFixReplication) Do(args []string, commandEnv *CommandEnv, |
|
|
|
underReplicatedVolumeIds = append(underReplicatedVolumeIds, vid) |
|
|
|
case isMisplaced(replicas, replicaPlacement): |
|
|
|
misplacedVolumeIds = append(misplacedVolumeIds, vid) |
|
|
|
fmt.Fprintf(writer, "volume %d replication %s is not well placed %+v\n", replica.info.Id, replicaPlacement, replica) |
|
|
|
fmt.Fprintf(writer, "volume %d replication %s is not well placed %s\n", replica.info.Id, replicaPlacement, replica.location.dataNode.Id) |
|
|
|
case replicaPlacement.GetCopyCount() < len(replicas): |
|
|
|
overReplicatedVolumeIds = append(overReplicatedVolumeIds, vid) |
|
|
|
fmt.Fprintf(writer, "volume %d replication %s, but over replicated %+d\n", replica.info.Id, replicaPlacement, len(replicas)) |
|
|
|