diff --git a/cmd/admin-heal.go b/cmd/admin-heal.go
index f2a83d2c..5baebd78 100644
--- a/cmd/admin-heal.go
+++ b/cmd/admin-heal.go
@@ -39,10 +39,6 @@ var (
Name: "fake, k",
Usage: "Issue a fake heal operation",
},
- cli.BoolFlag{
- Name: "incomplete, I",
- Usage: "Heal uploads recursively",
- },
}
)
@@ -72,21 +68,12 @@ EXAMPLES:
3. Heal all objects under 'dir' prefix
$ {{.HelpName}} --recursive play/testbucket/dir/
- 4. Heal all uploads under 'dir' prefix
- $ {{.HelpName}} --incomplete --recursive play/testbucket/dir/
-
- 5. Issue a fake heal operation to list all objects to be healed
+ 4. Issue a fake heal operation to list all objects to be healed
$ {{.HelpName}} --fake play
- 6. Issue a fake heal operation to list all uploads to be healed
- $ {{.HelpName}} --fake --incomplete play
-
- 7. Issue a fake heal operation to list all objects to be healed under 'dir' prefix
+ 5. Issue a fake heal operation to list all objects to be healed under 'dir' prefix
$ {{.HelpName}} --recursive --fake play/testbucket/dir/
- 8. Issue a fake heal operation to list all uploads to be healed under 'dir' prefix
- $ {{.HelpName}} --incomplete --recursive --fake play/testbucket/dir/
-
`,
}
@@ -96,7 +83,6 @@ type healMessage struct {
Result madmin.HealResult `json:"result"`
Bucket string `json:"bucket"`
Object *madmin.ObjectInfo `json:"object"`
- Upload *madmin.UploadInfo `json:"upload"`
}
// adminHealBefore used to provide users with temporary warning message
@@ -111,12 +97,7 @@ func (u healMessage) String() string {
allHealedTmpl := "is healed on all disks"
someHealedTmpl := "is healed on some disks while other disks were offline"
- msg := ""
- if u.Object != nil {
- msg = fmt.Sprintf("Object %s/%s ", u.Bucket, u.Object.Key)
- } else {
- msg = fmt.Sprintf("Upload %s/%s/%s ", u.Bucket, u.Upload.Key, u.Upload.UploadID)
- }
+ msg := fmt.Sprintf("Object %s/%s ", u.Bucket, u.Object.Key)
switch u.Result.State {
case madmin.HealNone:
@@ -144,7 +125,6 @@ type healListMessage struct {
Status string `json:"status"`
Bucket string `json:"bucket"`
Object *madmin.ObjectInfo `json:"object"`
- Upload *madmin.UploadInfo `json:"upload"`
}
// String colorized service status message.
@@ -152,14 +132,8 @@ func (u healListMessage) String() string {
msg := ""
var healStatus madmin.HealStatus
- // Check if we have object heal information
- if u.Object != nil {
- msg += fmt.Sprintf("Object: %s/%s, ", u.Bucket, u.Object.Key)
- healStatus = u.Object.HealObjectInfo.Status
- } else {
- msg += fmt.Sprintf("Upload: %s/%s, ", u.Bucket, u.Upload.Key)
- healStatus = u.Upload.HealUploadInfo.Status
- }
+ msg += fmt.Sprintf("Object: %s/%s, ", u.Bucket, u.Object.Key)
+ healStatus = u.Object.HealObjectInfo.Status
// Print heal status
switch healStatus {
@@ -256,47 +230,6 @@ func healObjects(client *madmin.AdminClient, bucket, object string, isRecursive,
}
}
-func healUploads(client *madmin.AdminClient, bucket, object string, isRecursive, isFake bool) {
- // Search for uploads that need healing
- doneCh := make(chan struct{})
- healUploadsCh, e := client.ListUploadsHeal(bucket, object, isRecursive, doneCh)
- fatalIf(probe.NewError(e), "Cannot list uploads to be healed.")
-
- // Iterate over uploads that need healing
- for upload := range healUploadsCh {
- // Continue to next upload upon any error.
- if upload.Err != nil {
- errorIf(probe.NewError(upload.Err), "Cannot list uploads to be healed.")
- continue
- }
- // Heal upload info is nil skip it, must be a directory.
- if upload.HealUploadInfo == nil {
- continue
- }
-
- // Check the heal status, and call heal upload API only when an upload can be healed
- switch healInfo := *upload.HealUploadInfo; healInfo.Status {
- case madmin.CanHeal, madmin.CanPartiallyHeal:
- // Heal Upload
- var healResult madmin.HealResult
- if healResult, e = client.HealUpload(bucket, upload.Key, upload.UploadID, isFake); e != nil {
- errorIf(probe.NewError(e), "Cannot repair upload: `"+upload.Key+"`")
- continue
- }
- // Print successful message
- if isFake {
- printMsg(healListMessage{Bucket: bucket, Upload: &upload})
- } else {
- printMsg(healMessage{Bucket: bucket, Upload: &upload, Result: healResult})
- }
- case madmin.QuorumUnavailable:
- errorIf(errDummy().Trace(), upload.Key+" cannot be healed until quorum is available.")
- case madmin.Corrupted:
- errorIf(errDummy().Trace(), upload.Key+" cannot be healed, not enough information.")
- }
- }
-}
-
// checkAdminHealSyntax - validate all the passed arguments
func checkAdminHealSyntax(ctx *cli.Context) {
if len(ctx.Args()) != 1 {
@@ -308,7 +241,7 @@ func checkAdminHealSyntax(ctx *cli.Context) {
// store with alias `aliasedURL`
// - isIncomplete - if true we list uploads to be healed otherwise
// list objects to be healed
-func listAllToBeHealed(client *madmin.AdminClient, aliasedURL string, isIncomplete bool) *probe.Error {
+func listAllToBeHealed(client *madmin.AdminClient, aliasedURL string) *probe.Error {
s3Client, err := newClient(aliasedURL)
if err != nil {
return err
@@ -334,37 +267,19 @@ func listAllToBeHealed(client *madmin.AdminClient, aliasedURL string, isIncomple
// Search for objects that need to be healed in the current bucket
doneCh := make(chan struct{})
- if isIncomplete {
- listCh, e := client.ListUploadsHeal(currBucket, "", isRecursive, doneCh)
- fatalIf(probe.NewError(e), "Cannot list heal uploads.")
- // Iterate over uploads and print them when not errors
- for upload := range listCh {
- if upload.Err != nil {
- errorIf(probe.NewError(upload.Err), "Cannot heal upload `"+upload.Key+"`.")
- continue
- }
- // Skip for non-recursive use case.
- if upload.HealUploadInfo == nil {
- continue
- }
- printMsg(healListMessage{Bucket: currBucket, Upload: &upload})
+ listCh, e := client.ListObjectsHeal(currBucket, "", isRecursive, doneCh)
+ fatalIf(probe.NewError(e), "Cannot list heal objects.")
+ // Iterate over objects and print them when not errors
+ for obj := range listCh {
+ if obj.Err != nil {
+ errorIf(probe.NewError(obj.Err), "Cannot heal object `"+obj.Key+"`.")
+ continue
}
-
- } else {
- listCh, e := client.ListObjectsHeal(currBucket, "", isRecursive, doneCh)
- fatalIf(probe.NewError(e), "Cannot list heal objects.")
- // Iterate over objects and print them when not errors
- for obj := range listCh {
- if obj.Err != nil {
- errorIf(probe.NewError(obj.Err), "Cannot heal object `"+obj.Key+"`.")
- continue
- }
- // Skip for non-recursive use case.
- if obj.HealObjectInfo == nil {
- continue
- }
- printMsg(healListMessage{Bucket: currBucket, Object: &obj})
+ // Skip for non-recursive use case.
+ if obj.HealObjectInfo == nil {
+ continue
}
+ printMsg(healListMessage{Bucket: currBucket, Object: &obj})
}
}
return nil
@@ -381,7 +296,6 @@ func mainAdminHeal(ctx *cli.Context) error {
aliasedURL := args.Get(0)
isRecursive := ctx.Bool("recursive")
- isIncomplete := ctx.Bool("incomplete")
isFake := ctx.Bool("fake")
console.SetColor("Heal", color.New(color.FgGreen, color.Bold))
@@ -402,10 +316,10 @@ func mainAdminHeal(ctx *cli.Context) error {
// Heal format if bucket is not specified and quit immediately
if bucket == "" {
- // If --fake was given, print all objects/uploads that
- // need to be healed.
+ // If --fake was given, print all objects that need to
+ // be healed.
if isFake {
- lErr := listAllToBeHealed(client, aliasedURL, isIncomplete)
+ lErr := listAllToBeHealed(client, aliasedURL)
fatalIf(lErr, "Unable to list all objects to be healed")
return nil
}
@@ -418,11 +332,7 @@ func mainAdminHeal(ctx *cli.Context) error {
e = client.HealBucket(bucket, isFake)
fatalIf(probe.NewError(e), "Cannot heal bucket.")
- if !isIncomplete {
- healObjects(client, bucket, object, isRecursive, isFake)
- } else {
- healUploads(client, bucket, object, isRecursive, isFake)
- }
+ healObjects(client, bucket, object, isRecursive, isFake)
return nil
}
diff --git a/vendor/github.com/minio/minio/pkg/madmin/API.md b/vendor/github.com/minio/minio/pkg/madmin/API.md
index 8d6c3d99..e425761b 100644
--- a/vendor/github.com/minio/minio/pkg/madmin/API.md
+++ b/vendor/github.com/minio/minio/pkg/madmin/API.md
@@ -43,8 +43,6 @@ func main() {
| | |[`HealBucket`](#HealBucket) |||
| | |[`HealObject`](#HealObject)|||
| | |[`HealFormat`](#HealFormat)|||
-| | |[`ListUploadsHeal`](#ListUploadsHeal)|||
-| | |[`HealUpload`](#HealUpload)|||
## 1. Constructor
@@ -315,73 +313,6 @@ __Example__
log.Println("successfully healed storage format on available disks.")
```
-
-### ListUploadsHeal(bucket, prefix string, recursive bool, doneCh <-chan struct{}) (<-chan UploadInfo, error)
-List ongoing multipart uploads that need healing.
-
-| Param | Type | Description |
-|---|---|---|
-|`ui.Key` | _string_ | Name of the object being uploaded |
-|`ui.UploadID` | _string_ | UploadID of the ongoing multipart upload |
-|`ui.HealUploadInfo.Status` | _HealStatus_| One of `Healthy`, `CanHeal`, `Corrupted`, `QuorumUnavailable`|
-|`ui.Err`| _error_ | non-nil if fetching fetching healing information failed |
-
-__Example__
-
-``` go
-
- // Set true if recursive listing is needed.
- isRecursive := true
- // List objects that need healing for a given bucket and
- // prefix.
- healUploadsCh, err := madmClnt.ListUploadsHeal(bucket, prefix, isRecursive, doneCh)
- if err != nil {
- log.Fatalln("Failed to get list of uploads to be healed: ", err)
- }
-
- for upload := range healUploadsCh {
- if upload.Err != nil {
- log.Println("upload listing error: ", upload.Err)
- }
-
- if upload.HealUploadInfo != nil {
- switch healInfo := *upload.HealUploadInfo; healInfo.Status {
- case madmin.CanHeal:
- fmt.Println(upload.Key, " can be healed.")
- case madmin.QuorumUnavailable:
- fmt.Println(upload.Key, " can't be healed until quorum is available.")
- case madmin.Corrupted:
- fmt.Println(upload.Key, " can't be healed, not enough information.")
- }
- }
- }
-
-```
-
-
-### HealUpload(bucket, object, uploadID string, isDryRun bool) (HealResult, error)
-If upload is successfully healed returns nil, otherwise returns error indicating the reason for failure. If isDryRun is true, then the upload is not healed, but heal upload request is validated by the server. e.g, if the upload exists, if upload name is valid etc.
-
-| Param | Type | Description |
-|---|---|---|
-|`h.State` | _HealState_ | Represents the result of heal operation. It could be one of `HealNone`, `HealPartial` or `HealOK`. |
-
-
-| Value | Description |
-|---|---|
-| `HealNone` | Object/Upload wasn't healed on any of the disks |
-| `HealPartial` | Object/Upload was healed on some of the disks needing heal |
-| `HealOK` | Object/Upload was healed on all the disks needing heal |
-
-``` go
- isDryRun = false
- healResult, err := madmClnt.HealUpload("mybucket", "myobject", "myUploadID", isDryRun)
- if err != nil {
- log.Fatalln(err)
- }
-
- log.Println("Heal-upload result: ", healResult)
-```
## 6. Config operations
@@ -459,4 +390,3 @@ __Example__
log.Println("New credentials successfully set.")
```
-
diff --git a/vendor/github.com/minio/minio/pkg/madmin/api.go b/vendor/github.com/minio/minio/pkg/madmin/api.go
index 713ea647..09cad8c2 100644
--- a/vendor/github.com/minio/minio/pkg/madmin/api.go
+++ b/vendor/github.com/minio/minio/pkg/madmin/api.go
@@ -91,18 +91,6 @@ func New(endpoint string, accessKeyID, secretAccessKey string, secure bool) (*Ad
return clnt, nil
}
-// redirectHeaders copies all headers when following a redirect URL.
-// This won't be needed anymore from go 1.8 (https://github.com/golang/go/issues/4800)
-func redirectHeaders(req *http.Request, via []*http.Request) error {
- if len(via) == 0 {
- return nil
- }
- for key, val := range via[0].Header {
- req.Header[key] = val
- }
- return nil
-}
-
func privateNew(endpoint, accessKeyID, secretAccessKey string, secure bool) (*AdminClient, error) {
// construct endpoint.
endpointURL, err := getEndpointURL(endpoint, secure)
@@ -120,8 +108,7 @@ func privateNew(endpoint, accessKeyID, secretAccessKey string, secure bool) (*Ad
endpointURL: *endpointURL,
// Instantiate http client and bucket location cache.
httpClient: &http.Client{
- Transport: http.DefaultTransport,
- CheckRedirect: redirectHeaders,
+ Transport: http.DefaultTransport,
},
}
diff --git a/vendor/github.com/minio/minio/pkg/madmin/heal-commands.go b/vendor/github.com/minio/minio/pkg/madmin/heal-commands.go
index 4bb2cf6c..263bf4bf 100644
--- a/vendor/github.com/minio/minio/pkg/madmin/heal-commands.go
+++ b/vendor/github.com/minio/minio/pkg/madmin/heal-commands.go
@@ -29,10 +29,6 @@ import (
"time"
)
-const (
- maxUploadsList = 1000
-)
-
// listBucketHealResult container for listObjects response.
type listBucketHealResult struct {
// A response can contain CommonPrefixes only if you have
@@ -168,76 +164,16 @@ type ObjectInfo struct {
HealObjectInfo *HealObjectInfo `json:"healObjectInfo,omitempty"`
}
-// UploadInfo - represents an ongoing upload that needs to be healed.
-type UploadInfo struct {
- Key string `json:"name"` // Name of the object being uploaded.
-
- UploadID string `json:"uploadId"` // UploadID
- // Owner name.
- Owner struct {
- DisplayName string `json:"name"`
- ID string `json:"id"`
- } `json:"owner"`
-
- // The class of storage used to store the object.
- StorageClass string `json:"storageClass"`
-
- Initiated time.Time `json:"initiated"` // Time at which upload was initiated.
-
- // Error
- Err error `json:"-"`
- HealUploadInfo *HealObjectInfo `json:"healObjectInfo,omitempty"`
-}
-
-// Initiator - has same properties as Owner.
-type Initiator Owner
-
-// upload - represents an ongoing multipart upload.
-type upload struct {
- Key string
- UploadID string `xml:"UploadId"`
- Initiator Initiator
- Owner Owner
- StorageClass string
- Initiated time.Time
- HealUploadInfo *HealObjectInfo `xml:"HealObjectInfo,omitempty"`
-}
-
-// listUploadsHealResponse - represents ListUploadsHeal response.
-type listUploadsHealResponse struct {
- XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ ListMultipartUploadsResult" json:"-"`
-
- Bucket string
- KeyMarker string
- UploadIDMarker string `xml:"UploadIdMarker"`
- NextKeyMarker string
- NextUploadIDMarker string `xml:"NextUploadIdMarker"`
- Delimiter string
- Prefix string
- EncodingType string `xml:"EncodingType,omitempty"`
- MaxUploads int
- IsTruncated bool
-
- // List of pending uploads.
- Uploads []upload `xml:"Upload"`
-
- // Delimed common prefixes.
- CommonPrefixes []commonPrefix
-}
-
type healQueryKey string
const (
- healBucket healQueryKey = "bucket"
- healObject healQueryKey = "object"
- healPrefix healQueryKey = "prefix"
- healMarker healQueryKey = "marker"
- healDelimiter healQueryKey = "delimiter"
- healMaxKey healQueryKey = "max-key"
- healDryRun healQueryKey = "dry-run"
- healUploadIDMarker healQueryKey = "upload-id-marker"
- healMaxUpload healQueryKey = "max-uploads"
- healUploadID healQueryKey = "upload-id"
+ healBucket healQueryKey = "bucket"
+ healObject healQueryKey = "object"
+ healPrefix healQueryKey = "prefix"
+ healMarker healQueryKey = "marker"
+ healDelimiter healQueryKey = "delimiter"
+ healMaxKey healQueryKey = "max-key"
+ healDryRun healQueryKey = "dry-run"
)
// mkHealQueryVal - helper function to construct heal REST API query params.
@@ -439,59 +375,6 @@ func (adm *AdminClient) HealBucket(bucket string, dryrun bool) error {
return nil
}
-// HealUpload - Heal the given upload.
-func (adm *AdminClient) HealUpload(bucket, object, uploadID string, dryrun bool) (HealResult, error) {
- // Construct query params.
- queryVal := url.Values{}
- queryVal.Set("heal", "")
- queryVal.Set(string(healBucket), bucket)
- queryVal.Set(string(healObject), object)
- queryVal.Set(string(healUploadID), uploadID)
- if dryrun {
- queryVal.Set(string(healDryRun), "")
- }
-
- hdrs := make(http.Header)
- hdrs.Set(minioAdminOpHeader, "upload")
-
- reqData := requestData{
- queryValues: queryVal,
- customHeaders: hdrs,
- }
-
- // Execute POST on
- // /?heal&bucket=mybucket&object=myobject&upload-id=uploadID
- // to heal an upload.
- resp, err := adm.executeMethod("POST", reqData)
-
- defer closeResponse(resp)
- if err != nil {
- return HealResult{}, err
- }
-
- if resp.StatusCode != http.StatusOK {
- return HealResult{}, httpRespToErrorResponse(resp)
- }
-
- // Healing is not performed so heal object result is empty.
- if dryrun {
- return HealResult{}, nil
- }
-
- jsonBytes, err := ioutil.ReadAll(resp.Body)
- if err != nil {
- return HealResult{}, err
- }
-
- healResult := HealResult{}
- err = json.Unmarshal(jsonBytes, &healResult)
- if err != nil {
- return HealResult{}, err
- }
-
- return healResult, nil
-}
-
// HealResult - represents result of heal-object admin API.
type HealResult struct {
State HealState `json:"state"`
@@ -590,140 +473,3 @@ func (adm *AdminClient) HealFormat(dryrun bool) error {
return nil
}
-
-// mkUploadsHealQuery - helper function to construct query params for
-// ListUploadsHeal API.
-func mkUploadsHealQuery(bucket, prefix, marker, uploadIDMarker, delimiter, maxUploadsStr string) url.Values {
-
- queryVal := make(url.Values)
- queryVal.Set("heal", "")
- queryVal.Set(string(healBucket), bucket)
- queryVal.Set(string(healPrefix), prefix)
- queryVal.Set(string(healMarker), marker)
- queryVal.Set(string(healUploadIDMarker), uploadIDMarker)
- queryVal.Set(string(healDelimiter), delimiter)
- queryVal.Set(string(healMaxUpload), maxUploadsStr)
- return queryVal
-}
-
-func (adm *AdminClient) listUploadsHeal(bucket, prefix, marker, uploadIDMarker, delimiter string, maxUploads int) (listUploadsHealResponse, error) {
- // Construct query params.
- maxUploadsStr := fmt.Sprintf("%d", maxUploads)
- queryVal := mkUploadsHealQuery(bucket, prefix, marker, uploadIDMarker, delimiter, maxUploadsStr)
-
- hdrs := make(http.Header)
- hdrs.Set(minioAdminOpHeader, "list-uploads")
-
- reqData := requestData{
- queryValues: queryVal,
- customHeaders: hdrs,
- }
-
- // Empty 'list' of objects to be healed.
- toBeHealedUploads := listUploadsHealResponse{}
-
- // Execute GET on /?heal to list objects needing heal.
- resp, err := adm.executeMethod("GET", reqData)
-
- defer closeResponse(resp)
- if err != nil {
- return listUploadsHealResponse{}, err
- }
-
- if resp.StatusCode != http.StatusOK {
- return toBeHealedUploads, httpRespToErrorResponse(resp)
-
- }
-
- err = xml.NewDecoder(resp.Body).Decode(&toBeHealedUploads)
- if err != nil {
- return listUploadsHealResponse{}, err
- }
-
- return toBeHealedUploads, nil
-}
-
-// ListUploadsHeal - issues list heal uploads API request
-func (adm *AdminClient) ListUploadsHeal(bucket, prefix string, recursive bool,
- doneCh <-chan struct{}) (<-chan UploadInfo, error) {
-
- // Default listing is delimited at "/"
- delimiter := "/"
- if recursive {
- // If recursive we do not delimit.
- delimiter = ""
- }
-
- uploadIDMarker := ""
-
- // Allocate new list objects channel.
- uploadStatCh := make(chan UploadInfo, maxUploadsList)
-
- // Initiate list objects goroutine here.
- go func(uploadStatCh chan<- UploadInfo) {
- defer close(uploadStatCh)
- // Save marker for next request.
- var marker string
- for {
- // Get list of objects a maximum of 1000 per request.
- result, err := adm.listUploadsHeal(bucket, prefix, marker,
- uploadIDMarker, delimiter, maxUploadsList)
- if err != nil {
- uploadStatCh <- UploadInfo{
- Err: err,
- }
- return
- }
-
- // If contents are available loop through and
- // send over channel.
- for _, upload := range result.Uploads {
- select {
- // Send upload info.
- case uploadStatCh <- UploadInfo{
- Key: upload.Key,
- UploadID: upload.UploadID,
- Initiated: upload.Initiated,
- HealUploadInfo: upload.HealUploadInfo,
- }:
- // If receives done from the caller, return here.
- case <-doneCh:
- return
- }
- }
-
- // Send all common prefixes if any. NOTE:
- // prefixes are only present if the request is
- // delimited.
- for _, prefix := range result.CommonPrefixes {
- upload := UploadInfo{}
- upload.Key = prefix.Prefix
- select {
- // Send object prefixes.
- case uploadStatCh <- upload:
- // If receives done from the caller, return here.
- case <-doneCh:
- return
- }
- }
-
- // If next uploadID marker is present, set it
- // for the next request.
- if result.NextUploadIDMarker != "" {
- uploadIDMarker = result.NextUploadIDMarker
- }
-
- // If next marker present, save it for next request.
- if result.KeyMarker != "" {
- marker = result.KeyMarker
- }
-
- // Listing ends result is not truncated,
- // return right here.
- if !result.IsTruncated {
- return
- }
- }
- }(uploadStatCh)
- return uploadStatCh, nil
-}
diff --git a/vendor/github.com/minio/minio/pkg/madmin/info-commands.go b/vendor/github.com/minio/minio/pkg/madmin/info-commands.go
index f6f93265..db9ffe5d 100644
--- a/vendor/github.com/minio/minio/pkg/madmin/info-commands.go
+++ b/vendor/github.com/minio/minio/pkg/madmin/info-commands.go
@@ -74,11 +74,34 @@ type ServerConnStats struct {
TotalOutputBytes uint64 `json:"received"`
}
+// ServerHTTPMethodStats holds total number of HTTP operations from/to the server,
+// including the average duration the call was spent.
+type ServerHTTPMethodStats struct {
+ Count uint64 `json:"count"`
+ AvgDuration string `json:"avgDuration"`
+}
+
+// ServerHTTPStats holds all type of http operations performed to/from the server
+// including their average execution time.
+type ServerHTTPStats struct {
+ TotalHEADStats ServerHTTPMethodStats `json:"totalHEADs"`
+ SuccessHEADStats ServerHTTPMethodStats `json:"successHEADs"`
+ TotalGETStats ServerHTTPMethodStats `json:"totalGETs"`
+ SuccessGETStats ServerHTTPMethodStats `json:"successGETs"`
+ TotalPUTStats ServerHTTPMethodStats `json:"totalPUTs"`
+ SuccessPUTStats ServerHTTPMethodStats `json:"successPUTs"`
+ TotalPOSTStats ServerHTTPMethodStats `json:"totalPOSTs"`
+ SuccessPOSTStats ServerHTTPMethodStats `json:"successPOSTs"`
+ TotalDELETEStats ServerHTTPMethodStats `json:"totalDELETEs"`
+ SuccessDELETEStats ServerHTTPMethodStats `json:"successDELETEs"`
+}
+
// ServerInfoData holds storage, connections and other
// information of a given server
type ServerInfoData struct {
StorageInfo StorageInfo `json:"storage"`
ConnStats ServerConnStats `json:"network"`
+ HTTPStats ServerHTTPStats `json:"http"`
Properties ServerProperties `json:"server"`
}
diff --git a/vendor/github.com/minio/minio/pkg/madmin/lock-commands.go b/vendor/github.com/minio/minio/pkg/madmin/lock-commands.go
index f21ff460..edfc548b 100644
--- a/vendor/github.com/minio/minio/pkg/madmin/lock-commands.go
+++ b/vendor/github.com/minio/minio/pkg/madmin/lock-commands.go
@@ -28,18 +28,8 @@ import (
type statusType string
-const (
- runningStatus statusType = "Running"
- blockedStatus statusType = "Blocked"
-)
-
type lockType string
-const (
- debugRLockStr lockType = "RLock"
- debugWLockStr lockType = "WLock"
-)
-
// OpsLockState - represents lock specific details.
type OpsLockState struct {
OperationID string `json:"id"` // String containing operation ID.
diff --git a/vendor/vendor.json b/vendor/vendor.json
index 9d34766f..12e9d809 100644
--- a/vendor/vendor.json
+++ b/vendor/vendor.json
@@ -98,10 +98,10 @@
"revisionTime": "2017-10-28T03:50:25Z"
},
{
- "checksumSHA1": "Z00ntXYcYqK9CjXD+tVgGwIZL1o=",
+ "checksumSHA1": "7b2H6/D4W0bCw6x9ShEvkapNtKQ=",
"path": "github.com/minio/minio/pkg/madmin",
- "revision": "6dea8f13e5d3b3bfd2eb534b3f767b16a3292aa9",
- "revisionTime": "2017-06-24T14:13:13Z"
+ "revision": "cd22feecf88eefd6eb98c12b162bce3ad0ea7cf9",
+ "revisionTime": "2018-01-11T23:07:43Z"
},
{
"checksumSHA1": "5r3V/rzpVqjJvzE/K5sR2LHEteM=",