diff options
| author | Lei Liu <lei01.liu@horizon.ai> | 2019-09-29 14:17:37 +0800 |
|---|---|---|
| committer | Lei Liu <lei01.liu@horizon.ai> | 2019-09-29 14:23:39 +0800 |
| commit | 3cc084269c47d72df463760445920b45819e9feb (patch) | |
| tree | 90c850277dd5ab530aae9baaf644d99bc779244c /weed/shell/command_volume_list.go | |
| parent | 972e881d485a1a5b4587f47ef55bbbf5182837f7 (diff) | |
| download | seaweedfs-3cc084269c47d72df463760445920b45819e9feb.tar.xz seaweedfs-3cc084269c47d72df463760445920b45819e9feb.zip | |
master api: return http 404 when volumeId not exist
Signed-off-by: Lei Liu <lei01.liu@horizon.ai>
Diffstat (limited to 'weed/shell/command_volume_list.go')
| -rw-r--r-- | weed/shell/command_volume_list.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/command_volume_list.go b/weed/shell/command_volume_list.go index 134580ffe..91b5a0d32 100644 --- a/weed/shell/command_volume_list.go +++ b/weed/shell/command_volume_list.go @@ -98,7 +98,7 @@ func writeDataNodeInfo(writer io.Writer, t *master_pb.DataNodeInfo) statistics { } func writeVolumeInformationMessage(writer io.Writer, t *master_pb.VolumeInformationMessage) statistics { fmt.Fprintf(writer, " volume %+v \n", t) - return newStatiscis(t) + return newStatistics(t) } type statistics struct { @@ -108,7 +108,7 @@ type statistics struct { DeletedBytes uint64 } -func newStatiscis(t *master_pb.VolumeInformationMessage) statistics { +func newStatistics(t *master_pb.VolumeInformationMessage) statistics { return statistics{ Size: t.Size, FileCount: t.FileCount, |
