Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getDeplIDFromUpload (0.12 sec)

  1. cmd/erasure-utils.go

    		write -= int64(n)
    
    		// Increment written.
    		totalWritten += int64(n)
    	}
    
    	// Success.
    	return totalWritten, nil
    }
    
    // returns deploymentID from uploadID
    func getDeplIDFromUpload(uploadID string) (string, error) {
    	uploadBytes, err := base64.RawURLEncoding.DecodeString(uploadID)
    	if err != nil {
    		return "", fmt.Errorf("error parsing uploadID %s (%w)", uploadID, err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. cmd/generic-handlers.go

    			h.ServeHTTP(w, r)
    			return
    		}
    
    		bucket, object := request2BucketObjectName(r)
    		uploadID := r.Form.Get(xhttp.UploadID)
    
    		if bucket != "" && object != "" && uploadID != "" {
    			deplID, err := getDeplIDFromUpload(uploadID)
    			if err != nil {
    				h.ServeHTTP(w, r)
    				return
    			}
    			remote, self := globalSiteReplicationSys.getPeerForUpload(deplID)
    			if self {
    				h.ServeHTTP(w, r)
    				return
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 20.5K bytes
    - Viewed (0)
Back to top