mirror of
https://github.com/pgsty/minio.git
synced 2026-11-10 01:31:52 +03:00
fix(tier): retain remote ownership through cleanup and migration
Signed-off-by: Feng Ruohang <rh@vonng.com>
This commit is contained in:
+10
-6
@@ -121,9 +121,11 @@ func (os *objSweeper) shouldRemoveRemoteObject() (jentry, bool) {
|
||||
}
|
||||
if delTier {
|
||||
return jentry{
|
||||
ObjName: os.RemoteObject,
|
||||
VersionID: os.TransitionVersionID,
|
||||
TierName: os.TransitionTier,
|
||||
Bucket: os.Bucket,
|
||||
Object: os.Object,
|
||||
RemoteObject: os.RemoteObject,
|
||||
RemoteVersionID: os.TransitionVersionID,
|
||||
TierName: os.TransitionTier,
|
||||
}, true
|
||||
}
|
||||
return jentry{}, false
|
||||
@@ -137,9 +139,11 @@ func (os *objSweeper) Sweep() {
|
||||
}
|
||||
|
||||
type jentry struct {
|
||||
ObjName string
|
||||
VersionID string
|
||||
TierName string
|
||||
Bucket string
|
||||
Object string
|
||||
RemoteObject string
|
||||
RemoteVersionID string
|
||||
TierName string
|
||||
}
|
||||
|
||||
func deleteObjectFromRemoteTier(ctx context.Context, objName, rvID, tierName string) error {
|
||||
|
||||
Reference in New Issue
Block a user