aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_fix_replication.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2023-10-02 10:52:40 -0700
committerchrislu <chris.lu@gmail.com>2023-10-02 10:52:40 -0700
commitb5070d6280babf7868e7940306a04f4f5f9579c3 (patch)
tree48874be1bee778af6199501f821d9022817513df /weed/shell/command_volume_fix_replication.go
parentbf13f3ced78fd1556f02bc4a28c0c342dc15a76f (diff)
parent5fb90a3157673f9030c499e4281748e1817b096f (diff)
downloadseaweedfs-b5070d6280babf7868e7940306a04f4f5f9579c3.tar.xz
seaweedfs-b5070d6280babf7868e7940306a04f4f5f9579c3.zip
Merge branch 'master' of https://github.com/seaweedfs/seaweedfs
Diffstat (limited to 'weed/shell/command_volume_fix_replication.go')
-rw-r--r--weed/shell/command_volume_fix_replication.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_volume_fix_replication.go b/weed/shell/command_volume_fix_replication.go
index 23d6e7156..43db0ff3b 100644
--- a/weed/shell/command_volume_fix_replication.go
+++ b/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))