Browse Source
chore: fix some comments (#20294)
Signed-off-by: shandongzhejiang <shandongzhejiang@icloud.com>
pull/20304/head
shandongzhejiang
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
3 additions and
3 deletions
-
cmd/bucket-lifecycle.go
-
cmd/encryption-v1.go
-
cmd/erasure-multipart.go
|
|
@ -1003,7 +1003,7 @@ func ongoingRestoreObj() restoreObjStatus { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// completeRestoreObj constructs restoreObjStatus for a completed restore-object with given expiry.
|
|
|
|
// completedRestoreObj constructs restoreObjStatus for a completed restore-object with given expiry.
|
|
|
|
func completedRestoreObj(expiry time.Time) restoreObjStatus { |
|
|
|
return restoreObjStatus{ |
|
|
|
ongoing: false, |
|
|
|
|
|
@ -1104,7 +1104,7 @@ func (o *ObjectInfo) metadataDecrypter(h http.Header) objectMetaDecryptFn { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// decryptChecksums will attempt to decode checksums and return it/them if set.
|
|
|
|
// decryptPartsChecksums will attempt to decode checksums and return it/them if set.
|
|
|
|
// if part > 0, and we have the checksum for the part that will be returned.
|
|
|
|
func (o *ObjectInfo) decryptPartsChecksums(h http.Header) { |
|
|
|
data := o.Checksum |
|
|
|
|
|
@ -110,7 +110,7 @@ func (er erasureObjects) checkUploadIDExists(ctx context.Context, bucket, object |
|
|
|
return fi, partsMetadata, err |
|
|
|
} |
|
|
|
|
|
|
|
// cleanMultipartPath removes all extraneous files and parts from the multipart folder, this is used per CompleteMultipart.
|
|
|
|
// cleanupMultipartPath removes all extraneous files and parts from the multipart folder, this is used per CompleteMultipart.
|
|
|
|
// do not use this function outside of completeMultipartUpload()
|
|
|
|
func (er erasureObjects) cleanupMultipartPath(ctx context.Context, paths ...string) { |
|
|
|
storageDisks := er.getDisks() |
|
|
|