Skip to content

Commit

Permalink
Call ListObjects without WithMetadata option (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
m90 committed Oct 23, 2022
1 parent 92b888e commit 907deec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/storage/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,8 @@ func (b *s3Storage) Copy(file string) error {
// Prune rotates away backups according to the configuration and provided deadline for the S3/Minio storage backend.
func (b *s3Storage) Prune(deadline time.Time, pruningPrefix string) (*storage.PruneStats, error) {
candidates := b.client.ListObjects(context.Background(), b.bucket, minio.ListObjectsOptions{
WithMetadata: true,
Prefix: filepath.Join(b.DestinationPath, pruningPrefix),
Recursive: true,
Prefix: filepath.Join(b.DestinationPath, pruningPrefix),
Recursive: true,
})

var matches []minio.ObjectInfo
Expand Down

0 comments on commit 907deec

Please sign in to comment.