From b8ebe54e53dd582139c33832cf6554476cc82076 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 19 Sep 2023 00:05:35 -0700 Subject: [PATCH] Revert "skip tiered objects to GLACIER in batch replication (#18044)" This reverts commit fd421ddd6f473f7ec832a943ebef2ddd87560c1a. MinIO already provides `filter` based on metadata that would work in this scenario already. --- cmd/batch-handlers.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cmd/batch-handlers.go b/cmd/batch-handlers.go index 3bf2b056f..39c525db4 100644 --- a/cmd/batch-handlers.go +++ b/cmd/batch-handlers.go @@ -251,8 +251,6 @@ func (r *BatchJobReplicateV1) copyWithMultipartfromSource(ctx context.Context, a return err } -const s3StorageClassGlacier = "GLACIER" - // StartFromSource starts the batch replication job from remote source, resumes if there was a pending job via "job.ID" func (r *BatchJobReplicateV1) StartFromSource(ctx context.Context, api ObjectLayer, job BatchJobRequest) error { ri := &batchJobInfo{ @@ -383,12 +381,6 @@ func (r *BatchJobReplicateV1) StartFromSource(ctx context.Context, api ObjectLay skipReplicate := false for obj := range objInfoCh { - if s3Type && obj.StorageClass == s3StorageClassGlacier { - // Skip GLACIER tiered objects for AWS S3 or any S3 - // compatible object storage vendors. - continue - } - oi := toObjectInfo(r.Source.Bucket, obj.Key, obj) if !minioSrc { oi2, err := c.StatObject(ctx, r.Source.Bucket, obj.Key, miniogo.StatObjectOptions{})