mirror of
https://github.com/minio/minio.git
synced 2025-02-09 04:38:09 -05:00
chore: fix some comments (#20294)
Signed-off-by: shandongzhejiang <shandongzhejiang@icloud.com>
This commit is contained in:
parent
1e1bd3afd9
commit
a8ff12bc72
@ -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 {
|
func completedRestoreObj(expiry time.Time) restoreObjStatus {
|
||||||
return restoreObjStatus{
|
return restoreObjStatus{
|
||||||
ongoing: false,
|
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.
|
// if part > 0, and we have the checksum for the part that will be returned.
|
||||||
func (o *ObjectInfo) decryptPartsChecksums(h http.Header) {
|
func (o *ObjectInfo) decryptPartsChecksums(h http.Header) {
|
||||||
data := o.Checksum
|
data := o.Checksum
|
||||||
|
@ -110,7 +110,7 @@ func (er erasureObjects) checkUploadIDExists(ctx context.Context, bucket, object
|
|||||||
return fi, partsMetadata, err
|
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()
|
// do not use this function outside of completeMultipartUpload()
|
||||||
func (er erasureObjects) cleanupMultipartPath(ctx context.Context, paths ...string) {
|
func (er erasureObjects) cleanupMultipartPath(ctx context.Context, paths ...string) {
|
||||||
storageDisks := er.getDisks()
|
storageDisks := er.getDisks()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user