mirror of
https://github.com/minio/minio.git
synced 2025-03-19 20:14:16 -04:00
fix: empty buckets/objects nodes in new setup (#11493)
This commit is contained in:
parent
13d015cf93
commit
3afa499885
@ -1585,6 +1585,10 @@ func (a adminAPIHandlers) ServerInfoHandler(w http.ResponseWriter, r *http.Reque
|
||||
buckets = madmin.Buckets{Count: dataUsageInfo.BucketsCount}
|
||||
objects = madmin.Objects{Count: dataUsageInfo.ObjectsTotalCount}
|
||||
usage = madmin.Usage{Size: dataUsageInfo.ObjectsTotalSize}
|
||||
} else {
|
||||
buckets = madmin.Buckets{Error: err.Error()}
|
||||
objects = madmin.Objects{Error: err.Error()}
|
||||
usage = madmin.Usage{Error: err.Error()}
|
||||
}
|
||||
|
||||
// Fetching the backend information
|
||||
|
@ -195,17 +195,20 @@ type Services struct {
|
||||
|
||||
// Buckets contains the number of buckets
|
||||
type Buckets struct {
|
||||
Count uint64 `json:"count,omitempty"`
|
||||
Count uint64 `json:"count"`
|
||||
Error string `json:"error,omitempty"`
|
||||
}
|
||||
|
||||
// Objects contains the number of objects
|
||||
type Objects struct {
|
||||
Count uint64 `json:"count,omitempty"`
|
||||
Count uint64 `json:"count"`
|
||||
Error string `json:"error,omitempty"`
|
||||
}
|
||||
|
||||
// Usage contains the tottal size used
|
||||
// Usage contains the total size used
|
||||
type Usage struct {
|
||||
Size uint64 `json:"size,omitempty"`
|
||||
Size uint64 `json:"size"`
|
||||
Error string `json:"error,omitempty"`
|
||||
}
|
||||
|
||||
// KMS contains KMS status information
|
||||
|
Loading…
x
Reference in New Issue
Block a user