diff options
| author | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2023-10-02 20:29:09 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-02 08:29:09 -0700 |
| commit | dffe00a822fd3bc0a496ab5fe134af67e18f2c91 (patch) | |
| tree | eff44ef7f6b007968ea00ce84a3e1edbb9585cb1 | |
| parent | 2a578b9033b2de12aeb49ae88a694d2510085665 (diff) | |
| download | seaweedfs-dffe00a822fd3bc0a496ab5fe134af67e18f2c91.tar.xz seaweedfs-dffe00a822fd3bc0a496ab5fe134af67e18f2c91.zip | |
fix: logger place msg (#4880)
| -rw-r--r-- | weed/shell/command_volume_fix_replication.go | 2 |
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)) |
