aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_list.go
diff options
context:
space:
mode:
authorLei Liu <lei01.liu@horizon.ai>2019-09-29 14:17:37 +0800
committerLei Liu <lei01.liu@horizon.ai>2019-09-29 14:23:39 +0800
commit3cc084269c47d72df463760445920b45819e9feb (patch)
tree90c850277dd5ab530aae9baaf644d99bc779244c /weed/shell/command_volume_list.go
parent972e881d485a1a5b4587f47ef55bbbf5182837f7 (diff)
downloadseaweedfs-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.go4
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,