aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_fix_replication.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2023-10-02 20:29:09 +0500
committerGitHub <noreply@github.com>2023-10-02 08:29:09 -0700
commitdffe00a822fd3bc0a496ab5fe134af67e18f2c91 (patch)
treeeff44ef7f6b007968ea00ce84a3e1edbb9585cb1 /weed/shell/command_volume_fix_replication.go
parent2a578b9033b2de12aeb49ae88a694d2510085665 (diff)
downloadseaweedfs-dffe00a822fd3bc0a496ab5fe134af67e18f2c91.tar.xz
seaweedfs-dffe00a822fd3bc0a496ab5fe134af67e18f2c91.zip
fix: logger place msg (#4880)
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))