mirror of
https://github.com/minio/minio.git
synced 2026-11-19 23:03:17 +00: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:
1 parent
e948e7cdf6
commit
860bf1bab2
5 files changed
+86
-14
No files matched your search
@@ -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