diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-28 16:21:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-28 16:21:15 +0200 |
commit | b203a25e1f6c4b9b3f4495349f42c2ef51e60523 (patch) | |
tree | 54dc1dde1473e2565f4614216e84dd1b0b244824 /server/lib/object-storage/shared | |
parent | eeb838faf2ac3cb3bd42f68fafb4f78af4547a09 (diff) | |
download | PeerTube-b203a25e1f6c4b9b3f4495349f42c2ef51e60523.tar.gz PeerTube-b203a25e1f6c4b9b3f4495349f42c2ef51e60523.tar.zst PeerTube-b203a25e1f6c4b9b3f4495349f42c2ef51e60523.zip |
Keep s3 commands simple
As s3 implementation between s3 providers can be different
Diffstat (limited to 'server/lib/object-storage/shared')
-rw-r--r-- | server/lib/object-storage/shared/object-storage-helpers.ts | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/server/lib/object-storage/shared/object-storage-helpers.ts b/server/lib/object-storage/shared/object-storage-helpers.ts index 861c490d7..0d8878bd2 100644 --- a/server/lib/object-storage/shared/object-storage-helpers.ts +++ b/server/lib/object-storage/shared/object-storage-helpers.ts | |||
@@ -145,8 +145,6 @@ function removeObjectByFullKey (fullKey: string, bucketInfo: BucketInfo) { | |||
145 | } | 145 | } |
146 | 146 | ||
147 | async function removePrefix (prefix: string, bucketInfo: BucketInfo) { | 147 | async function removePrefix (prefix: string, bucketInfo: BucketInfo) { |
148 | // FIXME: use bulk delete when s3ninja will support this operation | ||
149 | |||
150 | logger.debug('Removing prefix %s in bucket %s', prefix, bucketInfo.BUCKET_NAME, lTags()) | 148 | logger.debug('Removing prefix %s in bucket %s', prefix, bucketInfo.BUCKET_NAME, lTags()) |
151 | 149 | ||
152 | return applyOnPrefix({ | 150 | return applyOnPrefix({ |