diff options
| author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2023-09-18 14:43:05 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-18 14:43:05 -0700 |
| commit | a04bd4d26fb355fff6447dd8e508fa54f3c6c180 (patch) | |
| tree | d0710c058202d6516bb6057b3e278f65acba7580 /weed/shell/command_volume_list.go | |
| parent | a0b60dd64126ba0b8b7ae89123acc32a7080bba9 (diff) | |
| download | seaweedfs-a04bd4d26fb355fff6447dd8e508fa54f3c6c180.tar.xz seaweedfs-a04bd4d26fb355fff6447dd8e508fa54f3c6c180.zip | |
Bump github.com/rclone/rclone from 1.63.1 to 1.64.0 (#4850)
* Bump github.com/rclone/rclone from 1.63.1 to 1.64.0
Bumps [github.com/rclone/rclone](https://github.com/rclone/rclone) from 1.63.1 to 1.64.0.
- [Release notes](https://github.com/rclone/rclone/releases)
- [Changelog](https://github.com/rclone/rclone/blob/master/RELEASE.md)
- [Commits](https://github.com/rclone/rclone/compare/v1.63.1...v1.64.0)
---
updated-dependencies:
- dependency-name: github.com/rclone/rclone
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* API changes
* go mod
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
Co-authored-by: chrislu <chris.lu@gmail.com>
Diffstat (limited to 'weed/shell/command_volume_list.go')
| -rw-r--r-- | weed/shell/command_volume_list.go | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/weed/shell/command_volume_list.go b/weed/shell/command_volume_list.go index b4f94df1a..70b7553b3 100644 --- a/weed/shell/command_volume_list.go +++ b/weed/shell/command_volume_list.go @@ -8,6 +8,7 @@ import ( "github.com/seaweedfs/seaweedfs/weed/storage/erasure_coding" "golang.org/x/exp/slices" "path/filepath" + "strings" "io" ) @@ -81,8 +82,8 @@ func diskInfoToString(diskInfo *master_pb.DiskInfo) string { func (c *commandVolumeList) writeTopologyInfo(writer io.Writer, t *master_pb.TopologyInfo, volumeSizeLimitMb uint64, verbosityLevel int) statistics { output(verbosityLevel >= 0, writer, "Topology volumeSizeLimit:%d MB%s\n", volumeSizeLimitMb, diskInfosToString(t.DiskInfos)) - slices.SortFunc(t.DataCenterInfos, func(a, b *master_pb.DataCenterInfo) bool { - return a.Id < b.Id + slices.SortFunc(t.DataCenterInfos, func(a, b *master_pb.DataCenterInfo) int { + return strings.Compare(a.Id, b.Id) }) var s statistics for _, dc := range t.DataCenterInfos { @@ -98,8 +99,8 @@ func (c *commandVolumeList) writeTopologyInfo(writer io.Writer, t *master_pb.Top func (c *commandVolumeList) writeDataCenterInfo(writer io.Writer, t *master_pb.DataCenterInfo, verbosityLevel int) statistics { output(verbosityLevel >= 1, writer, " DataCenter %s%s\n", t.Id, diskInfosToString(t.DiskInfos)) var s statistics - slices.SortFunc(t.RackInfos, func(a, b *master_pb.RackInfo) bool { - return a.Id < b.Id + slices.SortFunc(t.RackInfos, func(a, b *master_pb.RackInfo) int { + return strings.Compare(a.Id, b.Id) }) for _, r := range t.RackInfos { if *c.rack != "" && *c.rack != r.Id { @@ -114,8 +115,8 @@ func (c *commandVolumeList) writeDataCenterInfo(writer io.Writer, t *master_pb.D func (c *commandVolumeList) writeRackInfo(writer io.Writer, t *master_pb.RackInfo, verbosityLevel int) statistics { output(verbosityLevel >= 2, writer, " Rack %s%s\n", t.Id, diskInfosToString(t.DiskInfos)) var s statistics - slices.SortFunc(t.DataNodeInfos, func(a, b *master_pb.DataNodeInfo) bool { - return a.Id < b.Id + slices.SortFunc(t.DataNodeInfos, func(a, b *master_pb.DataNodeInfo) int { + return strings.Compare(a.Id, b.Id) }) for _, dn := range t.DataNodeInfos { if *c.dataNode != "" && *c.dataNode != dn.Id { @@ -159,8 +160,8 @@ func (c *commandVolumeList) writeDiskInfo(writer io.Writer, t *master_pb.DiskInf diskType = "hdd" } output(verbosityLevel >= 4, writer, " Disk %s(%s)\n", diskType, diskInfoToString(t)) - slices.SortFunc(t.VolumeInfos, func(a, b *master_pb.VolumeInformationMessage) bool { - return a.Id < b.Id + slices.SortFunc(t.VolumeInfos, func(a, b *master_pb.VolumeInformationMessage) int { + return int(a.Id - b.Id) }) for _, vi := range t.VolumeInfos { if c.isNotMatchDiskInfo(vi.ReadOnly, vi.Collection, vi.Id) { |
