mirror of
https://github.com/pgsty/minio.git
synced 2026-03-16 17:53:43 +01:00
Add IsRemote method on FileInfo, ObjectInfo (#12209)
Provides a convenient method to know if an object's contents are in its remote tier.
This commit is contained in:
committed by
GitHub
parent
e948e7cdf6
commit
860bf1bab2
@@ -509,7 +509,7 @@ func (er erasureObjects) healObject(ctx context.Context, bucket string, object s
|
||||
|
||||
// dataDir should be empty when
|
||||
// - transitionStatus is complete and not in restored state
|
||||
if partsMetadata[i].TransitionStatus == lifecycle.TransitionComplete && !isRestoredObjectOnDisk(partsMetadata[i].Metadata) {
|
||||
if partsMetadata[i].IsRemote() {
|
||||
partsMetadata[i].DataDir = ""
|
||||
}
|
||||
// Attempt a rename now from healed data to final location.
|
||||
|
||||
Reference in New Issue
Block a user