diff options
| author | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2022-09-05 19:49:26 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-05 07:49:26 -0700 |
| commit | 916673ae24861fc7ad169dd3f580962d1a65b39a (patch) | |
| tree | 1c86984e024b7ffeb2d29991ca23a2625cdd3b3a /weed/shell/command_volume_check_disk.go | |
| parent | 5307cadb320b0ec58105cdc2d92d7c092723b279 (diff) | |
| download | seaweedfs-916673ae24861fc7ad169dd3f580962d1a65b39a.tar.xz seaweedfs-916673ae24861fc7ad169dd3f580962d1a65b39a.zip | |
do not print diskInfos with doVolumeCheckDisk in error log (#3598)
Diffstat (limited to 'weed/shell/command_volume_check_disk.go')
| -rw-r--r-- | weed/shell/command_volume_check_disk.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/command_volume_check_disk.go b/weed/shell/command_volume_check_disk.go index 403a3a841..f1924d32d 100644 --- a/weed/shell/command_volume_check_disk.go +++ b/weed/shell/command_volume_check_disk.go @@ -129,10 +129,10 @@ func (c *commandVolumeCheckDisk) checkBoth(a *VolumeReplica, b *VolumeReplica, a // find and make up the differences if aHasChanges, err = c.doVolumeCheckDisk(bDB, aDB, b, a, verbose, writer, applyChanges, nonRepairThreshold); err != nil { - return true, true, fmt.Errorf("doVolumeCheckDisk source:%s target:%s volume %d: %v", b.location.dataNode, a.location.dataNode, b.info.Id, err) + return true, true, fmt.Errorf("doVolumeCheckDisk source:%s target:%s volume %d: %v", b.location.dataNode.Id, a.location.dataNode.Id, b.info.Id, err) } if bHasChanges, err = c.doVolumeCheckDisk(aDB, bDB, a, b, verbose, writer, applyChanges, nonRepairThreshold); err != nil { - return true, true, fmt.Errorf("doVolumeCheckDisk source:%s target:%s volume %d: %v", a.location.dataNode, b.location.dataNode, a.info.Id, err) + return true, true, fmt.Errorf("doVolumeCheckDisk source:%s target:%s volume %d: %v", a.location.dataNode.Id, b.location.dataNode.Id, a.info.Id, err) } return } |
