From 907deecdd06557bf613111a2afd0436570bec60c Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Sun, 23 Oct 2022 21:56:44 +0200 Subject: [PATCH] Call ListObjects without WithMetadata option (#165) --- internal/storage/s3/s3.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/storage/s3/s3.go b/internal/storage/s3/s3.go index 97feb80..010c03d 100644 --- a/internal/storage/s3/s3.go +++ b/internal/storage/s3/s3.go @@ -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