mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-24 08:46:54 +08:00
fix: volume.list volume info output not in order (#6737)
This commit is contained in:
@@ -190,7 +190,7 @@ func (c *commandVolumeList) writeDiskInfo(writer io.Writer, t *master_pb.DiskInf
|
|||||||
diskType = types.HddType
|
diskType = types.HddType
|
||||||
}
|
}
|
||||||
slices.SortFunc(t.VolumeInfos, func(a, b *master_pb.VolumeInformationMessage) int {
|
slices.SortFunc(t.VolumeInfos, func(a, b *master_pb.VolumeInformationMessage) int {
|
||||||
return int(a.Id - b.Id)
|
return int(a.Id) - int(b.Id)
|
||||||
})
|
})
|
||||||
volumeInfosFound := false
|
volumeInfosFound := false
|
||||||
for _, vi := range t.VolumeInfos {
|
for _, vi := range t.VolumeInfos {
|
||||||
|
|||||||
Reference in New Issue
Block a user