aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_list.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2019-09-28 23:34:05 -0700
committerGitHub <noreply@github.com>2019-09-28 23:34:05 -0700
commit1bb4449e5e14d15af274a27ad4b18302ca91675b (patch)
tree90c850277dd5ab530aae9baaf644d99bc779244c /weed/shell/command_volume_list.go
parent972e881d485a1a5b4587f47ef55bbbf5182837f7 (diff)
parent3cc084269c47d72df463760445920b45819e9feb (diff)
downloadseaweedfs-1bb4449e5e14d15af274a27ad4b18302ca91675b.tar.xz
seaweedfs-1bb4449e5e14d15af274a27ad4b18302ca91675b.zip
Merge pull request #1076 from iliul/fix-lookup-statuscode
master api: return http 404 when volumeId not exist
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,